From 5332cf631762a471aaaef09795b5c4b223dc3069 Mon Sep 17 00:00:00 2001 From: Kaskov Mikhail Date: Fri, 25 Jul 2025 18:44:15 +0300 Subject: [PATCH] Changed format of ets2panda CLI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: [新需求]: Change format of errors in ets2panda https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICPCXY Signed-off-by: Kaskov Mikhail --- .../ets/AnnotationForTypeAliaDecl.ets | 11 +- .../ets/Const_Literal_As_TypeAnnotation_1.ets | 6 +- .../ets/Const_Literal_As_TypeAnnotation_2.ets | 6 +- .../ast/compiler/ets/DeclareCheckAssign.ets | 40 +- .../ambient_annotations_bad_type01.ets | 40 +- .../ambient_annotations_bad_type02.ets | 16 +- .../annotationDecl_bad_initializer08.ets | 14 +- .../annotationUsage_bad_param09.ets | 14 +- .../annotation_for_array_type01.ets | 4 +- .../annotation_for_readonly_type.ets | 2 +- ...rray_indexing_without_chaining_nullish.ets | 2 +- ...nsion_func_dupicated_name_with_builtin.ets | 2 +- .../extension_function_return_this_neg2.ets | 6 +- .../for_of_missing_iterator_type.ets | 2 +- .../scopes_multi_error.ets | 8 +- ...rabletypes_with_protected_iterator_neg.ets | 4 +- .../ets/FixedArray/lambda_type_mismatch.ets | 6 +- .../FixedArray/newClassInstanceExpression.ets | 2 +- .../same_assembly_overload/callExpr_pos.ets | 2 +- .../ets/FixedArray/setArrayLength1.ets | 2 +- .../ets/FixedArray/setArrayLength2.ets | 2 +- .../ets/FixedArray/setArrayLength3.ets | 2 +- .../FixedArray/spreadMultiArrayInTuple.ets | 12 +- .../ets/FixedArray/tuple_types_5_neg.ets | 18 +- .../ets/FixedArray/tuple_types_9_neg.ets | 18 +- .../ets/FixedArray/unionCommonMember_neg.ets | 14 +- .../FixedArray/union_array_declaration.ets | 2 +- .../ets/FixedArray/unresolved_reference.ets | 4 +- .../FixedArray/variance_typeparam_array.ets | 28 +- .../test/ast/compiler/ets/FunctionType10.ets | 2 +- .../test/ast/compiler/ets/FunctionType3.ets | 4 +- .../test/ast/compiler/ets/FunctionType5.ets | 2 +- .../test/ast/compiler/ets/FunctionType9.ets | 2 +- .../ast/compiler/ets/Incorrect_arrow_func.ets | 6 +- .../Invalid_rest_element_wtih_tuple_type.ets | 4 +- .../ast/compiler/ets/IsValidRestArgument.ets | 5 +- ...-static-private-method-used-as-val-neg.ets | 2 +- .../ast/compiler/ets/ObjectLiteral_neg_1.ets | 2 +- .../ast/compiler/ets/ObjectLiteral_neg_2.ets | 2 +- .../ets/ParserImpl_ParserForInOf_nullptr.ets | 21 +- .../ets/TypeError_recursive_parameter_1.ets | 2 +- .../ets/TypeError_recursive_parameter_2.ets | 2 +- .../ets/UnresolvedReferenceInCamparison.ets | 6 +- .../compiler/ets/absent_return_statement.ets | 12 +- .../ast/compiler/ets/ambient_function.ets | 4 +- .../ast/compiler/ets/ambient_indexer_1.ets | 2 +- .../ast/compiler/ets/ambient_indexer_2.ets | 2 +- .../ambient_indexer_multiple_dummy_nodes.ets | 2 +- .../ets/ambient_interface/use_interface.ets | 2 +- .../ambient_interface_default_keyword02.ets | 10 +- .../ast/compiler/ets/ambient_namesapce01.ets | 4 +- .../ast/compiler/ets/ambient_namesapce02.ets | 4 +- .../ast/compiler/ets/ambient_namesapce03.ets | 4 +- .../ast/compiler/ets/ambient_namesapce04.ets | 4 +- .../ast/compiler/ets/ambient_namesapce05.ets | 8 +- .../ast/compiler/ets/ambient_namesapce06.ets | 4 +- .../ast/compiler/ets/ambient_namesapce07.ets | 4 +- .../ets/ambient_struct/declare_struct.d.ets | 2 +- .../compiler/ets/ambiguous_signature01.ets | 2 +- .../ast/compiler/ets/anno_required_fields.ets | 6 +- .../ets/annotation_decl_dot_empty.ets | 4 +- .../ets/annotation_dot_with_empty.ets | 6 +- .../Retension_invalid_params.ets | 8 +- .../Retentions_missing_arguments.ets | 4 +- .../ambient_annotations_bad_type01.ets | 40 +- .../ambient_annotations_bad_type02.ets | 16 +- .../ambient_annotations_bad_type03.ets | 18 +- .../annotationDecl_bad_initializer07.ets | 4 +- .../annotationDecl_bad_initializer08.ets | 14 +- .../annotationDecl_bad_type.ets | 4 +- .../annotationUsage_as_type01.ets | 2 +- .../annotationUsage_as_type02.ets | 10 +- .../annotationUsage_as_type03.ets | 4 +- .../annotationUsage_as_type04.ets | 4 +- .../annotationUsage_as_type05.ets | 2 +- .../annotationUsage_as_type06.ets | 6 +- .../annotationUsage_as_type07.ets | 8 +- .../annotationUsage_as_type08.ets | 4 +- .../annotationUsage_as_type09.ets | 2 +- .../annotationUsage_as_type10.ets | 3 +- .../annotationUsage_as_type11.ets | 2 +- .../annotationUsage_as_type12.ets | 6 +- .../annotationUsage_as_type13.ets | 3 +- .../annotationUsage_as_type14.ets | 4 +- .../annotationUsage_bad_param07.ets | 4 +- .../annotationUsage_bad_param08.ets | 8 +- .../annotationUsage_bad_param09.ets | 14 +- .../annotationUsage_bad_param10.ets | 4 +- ...notationUsage_conflict_for_namespace01.ets | 4 +- ...notationUsage_conflict_for_namespace02.ets | 4 +- ...ationUsage_duplicate_for_classproperty.ets | 2 +- ...nnotationUsage_duplicate_for_interface.ets | 2 +- ...ionUsage_duplicate_for_interfacemethod.ets | 2 +- ...nUsage_duplicate_for_interfaceproperty.ets | 2 +- ...otationUsage_duplicate_for_namespace01.ets | 6 +- ...otationUsage_duplicate_for_namespace02.ets | 6 +- ...notationUsage_duplicate_for_type_alias.ets | 6 +- ...ationUsage_duplicate_for_variable_decl.ets | 4 +- .../annotationUsage_duplicate_from_import.ets | 2 +- .../annotationUsage_duplicate_on_class.ets | 2 +- ...ionUsage_duplicate_on_extension_lambda.ets | 2 +- .../annotationUsage_duplicate_on_function.ets | 2 +- .../annotationUsage_duplicate_on_method.ets | 2 +- .../annotationUsage_excessive_param01.ets | 4 +- .../annotationUsage_excessive_param02.ets | 4 +- ...sage_excessive_param_for_classproperty.ets | 4 +- ...age_excessive_param_for_function_param.ets | 4 +- ...ionUsage_excessive_param_for_interface.ets | 6 +- ...onUsage_excessive_param_for_type_alias.ets | 6 +- ...sage_excessive_param_for_variable_decl.ets | 4 +- .../annotationUsage_missing_AT01.ets | 8 +- .../annotationUsage_missing_AT02.ets | 4 +- ...notationUsage_missing_AT_for_interface.ets | 4 +- ...otationUsage_missing_AT_for_type_alias.ets | 10 +- ...tionUsage_missing_AT_for_variable_decl.ets | 8 +- .../annotationUsage_missing_arguements01.ets | 4 +- .../annotationUsage_missing_arguements02.ets | 8 +- ...nUsage_missing_param_for_classproperty.ets | 4 +- ...Usage_missing_param_for_function_param.ets | 10 +- ...ationUsage_missing_param_for_interface.ets | 6 +- ...tionUsage_missing_param_for_type_alias.ets | 6 +- ...nUsage_missing_param_for_variable_decl.ets | 8 +- .../annotationUsage_unordered_params.ets | 4 +- .../annotation_and_class_with_same_name.ets | 2 +- .../annotation_for_annotation.ets | 8 +- .../annotation_for_array_type01.ets | 4 +- .../annotation_for_array_type02.ets | 6 +- .../annotation_for_bad_target.ets | 10 +- .../annotation_for_boxing_type.ets | 16 +- .../annotation_for_function_type.ets | 12 +- .../annotation_for_named_type.ets | 8 +- .../annotation_for_object_type.ets | 6 +- .../annotation_for_other_type.ets | 6 +- .../annotation_for_readonly_type.ets | 4 +- .../annotation_for_string_literal.ets | 2 +- .../annotation_for_tuple_type.ets | 2 +- .../annotation_for_type_parameter01.ets | 14 +- .../annotation_for_types_in_annotation.ets | 2 +- .../annotation_for_types_in_class.ets | 16 +- .../annotation_for_types_in_expression.ets | 6 +- .../annotation_for_types_in_function.ets | 10 +- .../annotation_for_types_in_interface.ets | 2 +- .../annotation_for_types_in_variance.ets | 4 +- .../annotation_for_union_type.ets | 18 +- .../annotation_without_source_policy.ets | 14 +- .../broken_annotation_usage.ets | 5 +- .../test/ast/compiler/ets/array_index.ets | 2 +- ...rray_indexing_without_chaining_nullish.ets | 2 +- .../ets/array_with_type_parameter.ets | 30 +- ...w_function_call_as_record_property_key.ets | 64 +- .../compiler/ets/arrow_function_mismatch.ets | 3 +- .../test/ast/compiler/ets/assert_bad.ets | 4 +- .../test/ast/compiler/ets/assign_const.ets | 2 +- .../ets/async-function-expression1.ets | 12 +- .../ets/async-function-expression2.ets | 36 +- .../test/ast/compiler/ets/async_import_3.ets | 4 +- .../async_with_non_generic_return_type.ets | 2 +- .../test/ast/compiler/ets/bad_call_setter.ets | 6 +- .../ast/compiler/ets/bigInt_operators_neg.ets | 20 +- .../ets/bigInt_unsigned_right_shift.ets | 2 +- .../ast/compiler/ets/binary_operator_neg.ets | 10 +- .../test/ast/compiler/ets/bit_wise_expr.ets | 12 +- ...lock_namespace_interface_name_conflict.ets | 4 +- .../ast/compiler/ets/boxingConversion4.ets | 4 +- .../ast/compiler/ets/builtin_thisArgs.ets | 24 +- .../ets/call_for_method_never_exist.ets | 2 +- .../ast/compiler/ets/call_signature_error.ets | 4 +- .../ast/compiler/ets/check_spreadElement.ets | 5 +- .../ets/circular_dependency_crash.ets | 4 +- .../ast/compiler/ets/circular_inheritance.ets | 3 +- .../ets/circular_inheritance_class.ets | 3 +- .../test/ast/compiler/ets/circular_unfold.ets | 5 +- .../compiler/ets/circular_variable_init.ets | 16 +- .../compiler/ets/class_cyclic_constructor.ets | 23 +- .../ast/compiler/ets/class_inheritance.ets | 4 +- .../test/ast/compiler/ets/class_literal.ets | 2 +- .../compiler/ets/class_return_as_object.ets | 2 +- .../ets/class_without_closing_parentheses.ets | 22 +- .../compiler/ets/classproperty_init_neg.ets | 2 +- .../compiler/ets/conditional-type-alias.ets | 12 +- .../ets/constExpressionAsTypeReference.ets | 2 +- .../ets/constExpressionAsTypeReference1.ets | 6 +- .../ets/constExpressionAsTypeReference2.ets | 4 +- .../ets/constantExpressionLowering.ets | 6 +- .../constant_expression_test.ets | 3 +- .../enum_import_constant.ets | 2 +- .../conversion_Double-to-Int_typeerror.ets | 2 +- ...sion_Double-to-Int_w_try_stmt_typerror.ets | 4 +- .../ets/conversion_double_to_float.ets | 12 +- .../conversion_w_functions_w_try-stmts.ets | 2 +- .../ast/compiler/ets/debugger-statement.ets | 2 +- .../ast/compiler/ets/declaration_merging.ets | 5 +- .../ast/compiler/ets/declareNameSpace.ets | 3 +- .../ast/compiler/ets/declareType_neg_1.ets | 8 +- .../ast/compiler/ets/declareType_neg_2.ets | 2 +- .../ast/compiler/ets/declareType_neg_3.ets | 3 +- .../ast/compiler/ets/declareType_neg_4.ets | 3 +- .../compiler/ets/declareType_neg_import.ets | 3 +- .../default_export/export_default_bad1.ets | 2 +- .../default_export/export_default_bad2.ets | 2 +- .../compiler/ets/default_param_declare.ets | 4 +- .../ets/default_type_circular_dependency.ets | 12 +- .../ast/compiler/ets/division-by-zero.ets | 8 +- .../compiler/ets}/dynamic_optional_decl.ets | 0 .../ets/emptyOptionalTypeAnnotation.ets | 6 +- .../compiler/ets/empty_array_expression.ets | 16 +- .../compiler/ets/empty_tuple_assignmemt.ets | 2 +- .../ast/compiler/ets/enum-mixed-types.ets | 4 +- .../compiler/ets/enum-to-int-conversion.ets | 2 +- .../test/ast/compiler/ets/enumConversions.ets | 4 +- .../ets/enum_expressions/constant_char.ets | 4 +- .../constant_char_asexpression.ets | 24 +- .../ast/compiler/ets/etsObjectToString0.ets | 2 +- .../ast/compiler/ets/etsObjectToString1.ets | 2 +- .../ast/compiler/ets/etsObjectToString2.ets | 2 +- .../ast/compiler/ets/etsObjectToString3.ets | 2 +- .../ast/compiler/ets/etsObjectToString4.ets | 2 +- .../ast/compiler/ets/etsObjectToString5.ets | 2 +- .../invalid_operand_1.ets | 2 +- .../invalid_operand_2.ets | 2 +- .../invalid_operand_3.ets | 2 +- .../extensionAccessorMissingReceiver.ets | 6 +- ...sorNameDuplicatedWithExtensionFunction.ets | 3 +- ...sionAccessorNameDuplicatedWithFunction.ets | 3 +- ...ccessorNameDuplicatedWithInstanceField.ets | 4 +- ...meDuplicatedWithInterfaceInstanceField.ets | 8 +- ...nsionAccessorNameDuplicatedWithMethod1.ets | 4 +- ...nsionAccessorNameDuplicatedWithMethod2.ets | 4 +- ...orNameDuplicatedWithSuperInstanceField.ets | 4 +- ...AccessorNameDuplicatedWithSuperMethod1.ets | 4 +- ...AccessorNameDuplicatedWithSuperMethod2.ets | 4 +- .../extensionAccessorParams.ets | 4 +- .../extensionGetMustReturnValue.ets | 2 +- .../extensionGetterInWrongUsage.ets | 6 +- .../extensionGetterOnly.ets | 8 +- .../extensionGetterOnly2.ets | 8 +- .../extensionSetCantReturnValue.ets | 2 +- .../extensionSetterOnly.ets | 6 +- .../extensionSetterOnly2.ets | 8 +- .../test/ast/compiler/ets/extension_crash.ets | 7 +- ...nsion_func_dupicated_name_with_builtin.ets | 4 +- ...xtension_function_access_private_field.ets | 2 +- ...ension_function_access_protected_field.ets | 4 +- .../extension_function_called_by_class.ets | 18 +- ...function_duplicated_with_private_field.ets | 18 +- .../extension_function_duplication.ets | 2 +- ...extension_function_for_unresolved_type.ets | 4 +- .../extension_function_miss_signature.ets | 6 +- .../extension_function_not_for_class_type.ets | 2 +- .../extension_function_params_neg1.ets | 2 +- .../extension_function_params_neg2.ets | 2 +- .../extension_function_primitive.ets | 2 +- .../extension_function_return_this_neg.ets | 2 +- .../extension_function_return_this_neg2.ets | 4 +- .../extension_function_return_this_neg3.ets | 4 +- .../extension_function_return_this_union.ets | 6 +- .../extension_function_return_this_union2.ets | 4 +- .../extension_function_return_this_union3.ets | 6 +- ...fferent_return_type_interface_function.ets | 2 +- ...n_function_shadowed_by_member_function.ets | 4 +- ...ion_duplicated_with_extension_function.ets | 2 +- ...unction_with_extension_style_signature.ets | 2 +- .../put_this_as_method_params.ets | 2 +- .../ets/first_match/access_modifiers.ets | 16 +- .../ets/first_match/access_modifiers_2.ets | 6 +- .../compiler/ets/first_match/arrayliteral.ets | 4 +- .../compiler/ets/first_match/constructor.ets | 8 +- .../ets/first_match/invalid_declaration.ets | 24 +- .../ets/first_match/invalid_declaration_2.ets | 20 +- .../ets/first_match/invalid_declaration_3.ets | 8 +- .../ets/first_match/invalid_declaration_4.ets | 4 +- .../ets/first_match/invalid_declaration_5.ets | 11 +- .../ets/first_match/invalid_declare.ets | 14 +- .../ets/first_match/invalid_declare2.ets | 14 +- .../ets/first_match/invalid_identifier.ets | 44 +- .../ets/first_match/invalid_paramter.ets | 4 +- .../ets/first_match/modifier_async.ets | 4 +- .../ets/first_match/modifier_static.ets | 8 +- .../compiler/ets/first_match/namespace.ets | 18 +- .../ast/compiler/ets/first_match/override.ets | 2 +- .../compiler/ets/first_match/same_name.ets | 2 +- .../ets/for_of_missing_iterator_type.ets | 2 +- .../ets/forbidden_inherit_class_1.ets | 2 +- .../ets/forbidden_inherit_class_2.ets | 2 +- .../ets/forbidden_inherit_class_3.ets | 2 +- .../forof_iterator_doesnt_return_iteartor.ets | 7 +- .../ets/forof_iterator_missing_next.ets | 6 +- .../ets/forof_missing_iterator_method.ets | 4 +- ...forof_missing_iterator_method_with_sig.ets | 8 +- .../ast/compiler/ets/forof_prop_is_static.ets | 4 +- .../ast/compiler/ets/function_namespace.ets | 10 +- .../ast/compiler/ets/function_property.ets | 2 +- .../ast/compiler/ets/function_signature.ets | 12 +- .../ast/compiler/ets/function_subtyping_2.ets | 2 +- .../ast/compiler/ets/function_subtyping_3.ets | 2 +- .../ast/compiler/ets/function_typeerror.ets | 36 +- .../ast/compiler/ets/fuzz_invalid_method.ets | 12 +- .../compiler/ets/fuzz_invalid_property.ets | 20 +- .../test/ast/compiler/ets/fuzzingtest0.ets | 14 +- .../test/ast/compiler/ets/fuzzingtest1.ets | 8 +- .../test/ast/compiler/ets/fuzzingtest2.ets | 4 +- .../test/ast/compiler/ets/fuzzingtest3.ets | 12 +- .../test/ast/compiler/ets/fuzzingtest4.ets | 6 +- .../test/ast/compiler/ets/fuzzingtest5.ets | 4 +- .../test/ast/compiler/ets/fuzzingtest6.ets | 4 +- .../ets/genericObjectLiteral_neg_1.ets | 2 +- .../ets/genericObjectLiteral_neg_2.ets | 2 +- .../ets/genericObjectLiteral_neg_3.ets | 4 +- .../ast/compiler/ets/generic_callback.ets | 16 +- .../ets/generic_class_without_type_arg_1.ets | 2 +- .../ets/generic_class_without_type_arg_2.ets | 2 +- .../compiler/ets/generic_function_call_2.ets | 4 +- .../compiler/ets/generic_function_call_6.ets | 2 +- .../compiler/ets/generic_typealias_2_neg.ets | 2 +- .../compiler/ets/generic_typealias_3_neg.ets | 2 +- .../compiler/ets/generic_typealias_4_neg.ets | 2 +- .../compiler/ets/generic_typealias_5_neg.ets | 2 +- .../ast/compiler/ets/generic_variance_2.ets | 2 +- .../ast/compiler/ets/generic_variance_3.ets | 2 +- .../ast/compiler/ets/generic_variance_4.ets | 2 +- .../ast/compiler/ets/generic_variance_5.ets | 2 +- .../ets/generics_implicit_lambda2.ets | 2 +- .../generics_primitive_type_param_neg_1.ets | 2 +- .../generics_primitive_type_param_neg_2.ets | 2 +- .../test/ast/compiler/ets/getterNoReturn0.ets | 2 +- .../test/ast/compiler/ets/getterNoReturn1.ets | 2 +- .../ast/compiler/ets/greater_than_neg.ets | 8 +- .../ast/compiler/ets/identifierReference1.ets | 6 +- .../compiler/ets/identifierReference10.ets | 2 +- .../compiler/ets/identifierReference11.ets | 2 +- .../compiler/ets/identifierReference12.ets | 2 +- .../compiler/ets/identifierReference13.ets | 2 +- .../compiler/ets/identifierReference15.ets | 6 +- .../compiler/ets/identifierReference16.ets | 6 +- .../ast/compiler/ets/identifierReference2.ets | 2 +- .../ast/compiler/ets/identifierReference3.ets | 2 +- .../ast/compiler/ets/identifierReference5.ets | 2 +- .../ast/compiler/ets/identifierReference6.ets | 6 +- .../ast/compiler/ets/identifierReference7.ets | 4 +- .../ast/compiler/ets/identifierReference8.ets | 2 +- .../ast/compiler/ets/identifierReference9.ets | 2 +- .../package_test_3/package_module_1_neg.ets | 2 +- .../package_test_3/package_module_2_neg.ets | 2 +- .../package_test_4/package_module_1.ets | 4 +- .../package_test_5/package_module_1.ets | 10 +- .../package_test_5/package_module_2_neg.ets | 10 +- .../package_test_6/package_module_1.ets | 2 +- .../package_test_6/package_module_2.ets | 2 +- .../package_test_7/package_module_1_neg.ets | 2 +- .../package_test_7/package_module_2_neg.ets | 2 +- .../package_test_8/import_multi_error.ets | 8 +- .../package_test_9/package_module.ets | 18 +- .../package_module_with_semantic_error.ets | 18 +- .../package_module_with_syntax_error.ets | 18 +- .../package_with_both_errors.ets | 18 +- .../scopes_multi_error.ets | 10 +- .../import_export/eitest_import_A_1_ne.ets | 6 +- .../import_export/eitest_import_A_2_ne.ets | 6 +- .../import_export/eitest_import_A_3_ne.ets | 6 +- .../import_export/eitest_import_A_4_ne.ets | 6 +- .../import_export/eitest_import_A_5_ne.ets | 6 +- .../import_export/eitest_import_A_6_ne.ets | 6 +- .../import_export/eitest_import_A_7_ne.ets | 6 +- .../import_export/eitest_import_A_B_1_ne.ets | 6 +- .../import_export/eitest_import_all_1_ne.ets | 6 +- .../import_export/eitest_import_all_4_ne.ets | 2 +- .../eitest_import_default_A_1_ne.ets | 2 +- .../eitest_import_default_A_2_ne.ets | 6 +- .../eitest_import_default_A_3_ne.ets | 2 +- .../eitest_import_type_A_1_ne.ets | 2 +- .../ets/import_export/import_type_star.ets | 7 +- .../import_chain_with_errors/import_1.ets | 11 +- .../import_chain_with_errors/import_2.ets | 5 +- .../import_chain_with_errors/master_file.ets | 16 +- .../import_in_package_with_error.ets | 18 +- .../distant_package.ets | 4 +- .../package_with_errors_1.ets | 18 +- .../package_with_errors_2.ets | 18 +- .../import_within_scope/scope_import_1.ets | 2 +- .../import_within_scope/scope_import_2.ets | 2 +- .../import_within_scope/scope_import_3.ets | 2 +- .../import_function_wrong_name.ets | 2 +- .../import_interface_wrong_name.ets | 2 +- .../import_same_type_form_alias_3.ets | 4 +- .../namespace_import_wrong_access_name.ets | 2 +- .../selective_export_clashing_exports_3.ets | 2 +- .../selective_export_clashing_exports_4.ets | 2 +- .../ets/import_type_with_invalid_syntax.ets | 7 +- .../ast/compiler/ets/inferTypeLambda_0.ets | 4 +- .../ets/inferTypeOfArrayNegative2.ets | 10 +- .../ets/inferTypeOfArrayNegative3.ets | 6 +- .../ast/compiler/ets/infinityNarrowing.ets | 12 +- .../init_module_negative1.ets | 2 +- .../init_module_negative2.ets | 2 +- .../init_module_negative3.ets | 2 +- .../init_module_negative4.ets | 2 +- .../init_module_negative5.ets | 4 +- .../init_module_negative6.ets | 6 +- .../init_module_negative7.ets | 2 +- .../init_module_negative8.ets | 2 +- .../ets/initializer_block_namesapce04.ets | 8 +- .../ets/interface-constructor-signatures.ets | 22 +- .../ets/interfaceMethodNotOverridden.ets | 2 +- .../interface_ambient_call_signature_1.ets | 8 +- .../ets/interface_class_implement.ets | 2 +- .../ast/compiler/ets/interface_partial.ets | 16 +- .../compiler/ets/interface_property_scope.ets | 8 +- .../invalidIndirectInheritanceFromClass.ets | 4 +- ...nvalidIndirectInheritanceFromInterface.ets | 4 +- .../ast/compiler/ets/invalidInheritance1.ets | 2 +- .../ast/compiler/ets/invalidInheritance2.ets | 4 +- .../ast/compiler/ets/invalidInheritance4.ets | 2 +- .../ets/invalidInheritanceFromClass.ets | 4 +- .../ets/invalidInheritanceFromInterface.ets | 4 +- ...alidMemberExpressionFromStaticContext1.ets | 2 +- ...alidMemberExpressionFromStaticContext2.ets | 2 +- ...alidMemberExpressionFromStaticContext3.ets | 2 +- ...alidMemberExpressionFromStaticContext4.ets | 2 +- ...alidMemberExpressionFromStaticContext5.ets | 2 +- ...alidMemberExpressionFromStaticContext6.ets | 2 +- ...alidMemberExpressionFromStaticContext7.ets | 2 +- ...alidMemberExpressionFromStaticContext8.ets | 2 +- .../compiler/ets/invalidPrivateAccess1.ets | 2 +- .../compiler/ets/invalidPrivateAccess2.ets | 4 +- .../compiler/ets/invalidPrivateAccess3.ets | 6 +- .../compiler/ets/invalidPrivateAccess4.ets | 4 +- .../compiler/ets/invalidPrivateAccess5.ets | 12 +- .../compiler/ets/invalidPrivateAccess6.ets | 6 +- .../compiler/ets/invalidProtectedAccess1.ets | 2 +- .../compiler/ets/invalidProtectedAccess2.ets | 4 +- .../compiler/ets/invalidProtectedAccess3.ets | 6 +- .../compiler/ets/invalid_access_modifier.ets | 13 +- .../compiler/ets/invalid_class_declare.ets | 4 +- .../compiler/ets/invalid_namespace_neg.ets | 4 +- .../compiler/ets/invalid_namespace_neg2.ets | 2 +- .../test/ast/compiler/ets/invalid_object.ets | 16 +- .../ets/invalid_param_in_constructor.ets | 9 +- .../ast/compiler/ets/invalid_param_pack.ets | 10 +- ...lid_switch_case_in_function_assignment.ets | 8 +- .../compiler/ets/invalid_two_functions.ets | 6 +- ...rabletypes_with_protected_iterator_neg.ets | 4 +- .../compiler/ets/keyof_invalid_argument.ets | 76 +- .../keywords/issue26215_restricted_super.ets | 4 +- .../keywords/issue26215_restricted_this.ets | 4 +- ...sionWithoutBlockStatementDifferentType.ets | 2 +- ...tBlockStatementDifferentTypeInfunction.ets | 2 +- .../test/ast/compiler/ets/lambdaFunction3.ets | 2 +- .../test/ast/compiler/ets/lambdaFunction4.ets | 2 +- .../test/ast/compiler/ets/lambdaFunction5.ets | 4 +- .../test/ast/compiler/ets/lambda_override.ets | 4 +- .../ets/lambda_type_infer_to_rest_type.ets | 2 +- .../ast/compiler/ets/lambda_type_mismatch.ets | 6 +- .../MakeNormalFunctypeAsMethodCall.ets | 4 +- ...tensionFuncTypeAsParamsNameDuplicated3.ets | 2 +- ...literal_init_parameterless_constructor.ets | 2 +- .../test/ast/compiler/ets/localTypeAlias.ets | 54 +- .../test/ast/compiler/ets/local_enum02.ets | 4 +- .../test/ast/compiler/ets/local_enum03.ets | 4 +- .../compiler/ets/manyLocalsParamRegUsage.ets | 0 .../compiler/ets/math_const_as_identifier.ets | 12 +- .../ast/compiler/ets/method-assignment.ets | 14 +- ...on-class-and-interface-in-signatures_1.ets | 2 +- ...on-class-and-interface-in-signatures_2.ets | 2 +- ...on-class-and-interface-in-signatures_3.ets | 2 +- ...on-class-and-interface-in-signatures_4.ets | 4 +- ...on-class-and-interface-in-signatures_6.ets | 6 +- .../method_call_confilict_in_union_types.ets | 19 +- .../compiler/ets/method_error_identifier.ets | 15 +- .../ast/compiler/ets/mostSpecificMethod1.ets | 2 +- .../ast/compiler/ets/mostSpecificMethod2.ets | 2 +- ..._specific_method_with_empty_rest_param.ets | 2 +- .../compiler/ets/multiple_inheritance_neg.ets | 3 +- .../ets/multiple_inheritance_neg_2.ets | 3 +- ...ericWithNullableTypeParamToNonNullable.ets | 4 +- .../ets/nagative_trailingLambda_abort.ets | 14 +- .../ets/namespace_export_invalid01.ets | 6 +- .../ets/namespace_export_invalid02.ets | 2 +- .../ast/compiler/ets/namespace_modifiers.ets | 12 +- .../ets/namespace_static_block_init_neg.ets | 2 +- .../namespace_access_violation.ets | 18 +- ...access_violation_circular_dependencies.ets | 2 +- .../namespace_access_violation_conflicts.ets | 4 +- .../namespace_access_violation_exports.ets | 2 +- ...pace_access_violation_import_conflicts.ets | 8 +- ...space_access_violation_merge_conflicts.ets | 2 +- ...mespace_access_violation_nested_scopes.ets | 22 +- ...ce_access_violation_non_exported_merge.ets | 2 +- ...pace_access_violation_scope_resolution.ets | 2 +- ...pace_access_violation_undefined_scopes.ets | 2 +- .../namespace_tests/namespace_as_type01.ets | 2 +- .../namespace_tests/namespace_as_type02.ets | 10 +- .../namespace_tests/namespace_as_type03.ets | 4 +- .../namespace_tests/namespace_as_type04.ets | 4 +- .../namespace_tests/namespace_as_type05.ets | 2 +- .../namespace_tests/namespace_as_type06.ets | 6 +- .../namespace_tests/namespace_as_type07.ets | 8 +- .../namespace_tests/namespace_as_type08.ets | 4 +- .../namespace_tests/namespace_as_type09.ets | 2 +- .../namespace_tests/namespace_as_type10.ets | 3 +- .../namespace_tests/namespace_as_type11.ets | 2 +- .../namespace_tests/namespace_as_type12.ets | 4 +- .../namespace_bad_merged01.ets | 5 +- .../namespace_bad_merged02.ets | 3 +- .../namespace_default_import.ets | 2 +- .../namespace_merge_conflicts.ets | 2 +- .../compiler/ets/namespace_tests/src01.ets | 2 +- .../ets/negative_optional_constructor.ets | 10 +- .../test/ast/compiler/ets/negative_typo_1.ets | 5 +- .../ets/newClassInstanceExpression.ets | 2 +- .../ets/new_expr_with_succesive_multi_dot.ets | 14 +- .../test/ast/compiler/ets/no_match_sig.ets | 3 +- .../ast/compiler/ets/nonNullableKeyword.ets | 2 +- .../ast/compiler/ets/nonNullishType_n_1.ets | 2 +- .../ast/compiler/ets/nonNullishType_n_2.ets | 5 +- .../ast/compiler/ets/nonNullishType_n_3.ets | 6 +- .../ets/not_all_paths_return_value.ets | 4 +- .../complex_types.ets | 10 +- .../primitive_types.ets | 2 +- .../ets/null_coalescing_generic_1_neg.ets | 2 +- .../compiler/ets/null_coalescing_neg_01.ets | 12 +- .../ast/compiler/ets/null_pointer_error.ets | 10 +- .../ast/compiler/ets/null_pointer_error1.ets | 2 +- .../nullable_type_in_arithmeticmult_func.ets | 2 +- ...ype_in_arithmeticmult_func_w_undefined.ets | 2 +- .../nullable_type_in_arithmeticplus_func.ets | 2 +- ...ble_type_in_arithmeticplus_w_undefined.ets | 2 +- .../nullable_type_in_stringconcat_func.ets | 4 +- .../ast/compiler/ets/objectLiteralBadKey.ets | 2 +- .../ets/objectLiteralInaccessibleKey.ets | 2 +- .../ets/objectLiteralNoContextType.ets | 2 +- ...bjectLiteralNoParameterlessConstructor.ets | 2 +- .../compiler/ets/objectLiteralNoSuchKey.ets | 2 +- .../ets/objectLiteralPrivateConstructor.ets | 2 +- .../ets/objectLiteralWrongValueType.ets | 2 +- .../ets/objectLiteral_abstract_class.ets | 10 +- .../ets/objectLiteral_abstract_class_2.ets | 2 +- .../test/ast/compiler/ets/optional_method.ets | 4 +- .../compiler/ets/overload-resolution-rest.ets | 2 +- .../class_overloaded_name_must_ident.ets | 2 +- ...constructor_overloaded_name_must_ident.ets | 2 +- ...on_overloaded_name_must_qualified_name.ets | 2 +- .../interface_overloaded_name_must_ident.ets | 2 +- .../overload/overload_duplicate_function.ets | 2 +- .../overload_duplicate_function_2.ets | 3 +- .../overload/overload_duplicate_method.ets | 2 +- .../overload_duplicate_overload_name_1.ets | 8 +- ...verload_overloaded_name_at_most_once_1.ets | 2 +- ...erload_overloaded_name_used_as_value_1.ets | 3 +- ...erload_overloaded_name_used_as_value_2.ets | 2 +- .../ets/overload/overload_union_call.ets | 2 +- .../ets/overload/overload_union_call_2.ets | 4 +- .../compiler/ets/overloadMethodNoReturn0.ets | 2 +- .../compiler/ets/overloadMethodNoReturn1.ets | 2 +- .../ets/overload_equivalent_generics.ets | 2 +- .../test/ast/compiler/ets/override11.ets | 4 +- .../test/ast/compiler/ets/override15.ets | 4 +- ets2panda/test/ast/compiler/ets/override3.ets | 4 +- ets2panda/test/ast/compiler/ets/override7.ets | 4 +- .../ets/overrideModifierNotOverriding.ets | 2 +- .../ets/package_invalid_initializer/P3/P3.ets | 20 +- .../package_invalid_initializer/main_test.ets | 14 +- .../main_test.ets | 2 +- .../package/P2_01.ets | 3 +- .../package/P2_02.ets | 3 +- .../main_test.ets | 2 +- .../test/ast/compiler/ets/param_sort_1.ets | 2 +- .../test/ast/compiler/ets/param_sort_2.ets | 2 +- .../test/ast/compiler/ets/param_sort_3.ets | 2 +- .../compiler/ets/param_wrong_identifier.ets | 42 +- .../compiler/ets/parameter_anonymous_type.ets | 2 +- .../ast/compiler/ets/parser_annotation_n.ets | 4 +- .../test/ast/compiler/ets/parser_format.ets | 14 +- .../test/ast/compiler/ets/parser_import.ets | 6 +- .../ast/compiler/ets/partialType_1_neg.ets | 2 +- .../ast/compiler/ets/partialType_2_neg.ets | 2 +- .../ast/compiler/ets/partialType_3_neg.ets | 2 +- ...rtialType_check_in_RemoveUndefinedType.ets | 4 +- .../compiler/ets/privateMethodOverride.ets | 2 +- .../ets/private_field_declaration.ets | 4 +- .../ets/readonly-type-reassignment0.ets | 2 +- .../ets/readonly-type-reassignment1.ets | 2 +- .../ets/readonly/label_readonly_true.ets | 12 +- .../compiler/ets/readonly/readonly_array.ets | 4 +- .../ets/readonly/readonly_as_args_type.ets | 9 +- .../ets/readonly/readonly_as_fields_type.ets | 18 +- .../ets/readonly/readonly_static_var.ets | 8 +- .../test/ast/compiler/ets/readonlyField.ets | 2 +- .../test/ast/compiler/ets/readonlyField_2.ets | 2 +- .../ets/readonlyIntfObjectLiteral_neg_1.ets | 2 +- .../ets/readonlyIntfObjectLiteral_neg_2.ets | 2 +- .../test/ast/compiler/ets/readonlyType_1.ets | 4 +- .../test/ast/compiler/ets/readonlyType_2.ets | 4 +- .../test/ast/compiler/ets/readonlyType_3.ets | 4 +- .../test/ast/compiler/ets/readonlyType_4.ets | 4 +- .../ast/compiler/ets/readonly_array01.ets | 4 +- .../ets/recordWithLambdaFunction1.ets | 2 +- .../ets/recordWithLambdaFunction2.ets | 6 +- .../ast/compiler/ets/recursive_class_neg.ets | 6 +- .../compiler/ets/recursive_function_neg_1.ets | 2 +- .../ets/recursive_interface_neg_1.ets | 2 +- .../ets/recursive_interface_neg_2.ets | 2 +- .../compiler/ets/recursive_method_neg_1.ets | 2 +- .../compiler/ets/recursive_method_neg_2.ets | 4 +- .../compiler/ets/recursive_union_neg_1.ets | 2 +- .../compiler/ets/recursive_union_neg_2.ets | 4 +- .../ets/redefine_class/redefine_array.ets | 2 +- .../ast/compiler/ets/requiredType_10_neg.ets | 2 +- .../ast/compiler/ets/requiredType_2_neg.ets | 2 +- .../ast/compiler/ets/requiredType_3_neg.ets | 2 +- .../test/ast/compiler/ets/requiredType_6.ets | 2 +- .../ast/compiler/ets/requiredType_7_neg.ets | 2 +- .../ast/compiler/ets/requiredType_8_neg.ets | 2 +- .../ets/resolve_func_name_union_type.ets | 4 +- .../ets/resolve_func_name_union_type_1.ets | 4 +- .../ast/compiler/ets/restvar_type_infer.ets | 12 +- ...eturnTypeAnnotation_typeParams_nullptr.ets | 10 +- .../compiler/ets/return_missing_argument.ets | 2 +- .../this_type_invalid_return_type.ets | 2 +- .../this_type_overridden_by_child_class.ets | 4 +- .../identical_signature.ets | 4 +- .../overload_signature_neg_1.ets | 2 +- .../overload_signature_neg_2.ets | 2 +- .../same_assembly_overload/str_overload.ets | 2 +- .../ast/compiler/ets/same_name_field_err.ets | 2 +- .../import_ambient_const_neg.ets | 4 +- .../compiler/ets/set_init_without_param.ets | 10 +- .../ets/setter_func_no_return_type.ets | 6 +- .../test/ast/compiler/ets/smart_cast.ets | 3 +- ...eadExpressionAsPropertyInObjectLiteral.ets | 4 +- .../compiler/ets/spreadMultiArrayInTuple.ets | 12 +- .../test/ast/compiler/ets/spread_record.ets | 10 +- .../ets/staticInitializerInInnerClass.ets | 6 +- .../compiler/ets/static_index_function1.ets | 8 +- .../compiler/ets/static_index_function2.ets | 6 +- .../compiler/ets/static_index_function3.ets | 4 +- .../ast/compiler/ets/string_enum_unary.ets | 6 +- .../compiler/ets/string_tuple_type_neg.ets | 20 +- ets2panda/test/ast/compiler/ets/subtype.ets | 2 +- .../ets/superReferenceFromStaticContext.ets | 2 +- .../compiler/ets/switch_case_null_tstype.ets | 9 +- .../ast/compiler/ets/switch_negative_5.ets | 2 +- .../ast/compiler/ets/switchcaseDuplicate.ets | 2 +- .../test/ast/compiler/ets/template_fold.ets | 3 +- .../ets/thisReferenceFromStaticContext.ets | 4 +- ...s_expr_invalid_call_in_annotation_decl.ets | 2 +- .../ast/compiler/ets/throwInFinallyBlock.ets | 2 +- .../test/ast/compiler/ets/tolocalString.ets | 2 +- .../test/ast/compiler/ets/trailing_lambda.ets | 10 +- .../ast/compiler/ets/tryCatchErrorFlow.ets | 2 +- .../ast/compiler/ets/tryCatchMissingParam.ets | 2 +- .../ets/try_catch_already_declared.ets | 2 +- .../ast/compiler/ets/tuple_types_10_neg.ets | 2 +- .../ast/compiler/ets/tuple_types_11_neg.ets | 2 +- .../ast/compiler/ets/tuple_types_1_neg.ets | 2 +- .../ast/compiler/ets/tuple_types_2_neg.ets | 2 +- .../ast/compiler/ets/tuple_types_3_neg.ets | 2 +- .../ast/compiler/ets/tuple_types_4_neg.ets | 2 +- .../ast/compiler/ets/tuple_types_5_neg.ets | 10 +- .../ast/compiler/ets/tuple_types_9_neg.ets | 10 +- .../test/ast/compiler/ets/tuple_union_neg.ets | 3 +- .../ets/typeAliasWithConstraint_01.ets | 2 +- .../ets/typeAliasWithConstraint_02.ets | 2 +- .../ets/typeAliasWithConstraint_04.ets | 3 +- .../test/ast/compiler/ets/typeOfString.ets | 2 +- .../ets/typeVarReferenceFromStaticContext.ets | 2 +- .../compiler/ets/type_alise_with_lambda.ets | 4 +- .../not_constructible_types.ets | 18 +- .../param_typeannotation_null.ets | 2 +- .../property_typeerror.ets | 16 +- .../type_error_processing/type_handlers.ets | 20 +- .../type_error_processing/var_without_def.ets | 8 +- .../ast/compiler/ets/type_error_test2.ets | 28 +- .../ets/typealias_conflict_with_builtin.ets | 2 +- .../ets/typealias_default_type_01.ets | 2 +- .../ets/typealias_default_type_02.ets | 6 +- .../ets/typeof_on_primitive_and_ref_types.ets | 4 +- .../ast/compiler/ets/unexpected_param_01.ets | 11 +- .../ast/compiler/ets/unexpected_param_02.ets | 2 +- .../compiler/ets/unionCommonMember_neg.ets | 14 +- .../test/ast/compiler/ets/unionType_clone.ets | 26 +- .../compiler/ets/union_array_declaration.ets | 2 +- .../ast/compiler/ets/union_field_access.ets | 2 +- .../ast/compiler/ets/union_field_access_2.ets | 20 +- .../compiler/ets/union_generic_class_neg.ets | 8 +- .../test/ast/compiler/ets/union_method_4.ets | 8 +- .../ast/compiler/ets/union_overload_crash.ets | 2 +- .../compiler/ets/union_string_literals_1.ets | 2 +- .../compiler/ets/union_string_literals_2.ets | 4 +- .../compiler/ets/union_string_literals_3.ets | 2 +- .../compiler/ets/union_string_literals_5.ets | 2 +- .../compiler/ets/union_string_literals_6.ets | 2 +- .../compiler/ets/union_string_literals_7.ets | 4 +- .../compiler/ets/union_string_literals_8.ets | 4 +- .../test/ast/compiler/ets/union_types_2.ets | 2 +- .../test/ast/compiler/ets/union_types_4.ets | 2 +- .../ast/compiler/ets/union_types_forof_1.ets | 2 +- .../ets/unmatch_arg_for_trailing_lambda.ets | 10 +- .../ets/unresolve_class_with_type_infer.ets | 2 +- .../ast/compiler/ets/unresolved_reference.ets | 4 +- .../unresolved_reference_identifier/file1.ets | 4 +- .../main_test.ets | 4 +- .../test/ast/compiler/ets/update_const.ets | 2 +- .../flag_in_first_line_2_neg.ets | 2 +- .../flag_in_first_line_3_neg.ets | 2 +- .../flag_in_first_line_neg.ets | 2 +- .../flag_middle_importdecl_neg.ets | 2 +- .../package_2_neg/flag_before_package.ets | 4 +- .../package_3_neg/flag_before_package.ets | 6 +- .../package_neg/flag_package.ets | 2 +- .../package_neg/flag_package2.ets | 2 +- ...ility_type_can_not_found_etsobjecttype.ets | 4 +- ...signatures_throw_type_error_more_param.ets | 6 +- .../test/ast/compiler/ets/var_declaration.ets | 2 +- .../ets/variable_declaretion_neg_1.ets | 6 +- .../ast/compiler/ets/variance_typeparam.ets | 16 +- .../compiler/ets/variance_typeparam_array.ets | 28 +- .../compiler/ets/variance_typeparam_class.ets | 20 +- .../ets/variance_typeparam_lambda.ets | 24 +- .../ets/variance_typeparam_overload.ets | 4 +- .../compiler/ets/variance_typeparam_super.ets | 8 +- .../ets/variance_typeparam_transmit.ets | 10 +- .../compiler/ets/variance_typeparam_tuple.ets | 16 +- .../compiler/ets/variance_typeparam_union.ets | 40 +- .../ets/voidTypeInBinaryOperation.ets | 6 +- .../ets/void_as_return_type_neg_1.ets | 2 +- .../ets/void_as_return_type_neg_2.ets | 2 +- .../ets/void_as_typeAnnotation_neg_1.ets | 4 +- .../ast/compiler/ets/void_as_value_neg_1.ets | 2 +- .../ast/compiler/ets/void_as_value_neg_2.ets | 2 +- .../ast/compiler/ets/void_as_value_neg_3.ets | 2 +- .../ast/compiler/ets/void_as_value_neg_4.ets | 3 +- .../compiler/ets/wrong_variable_binding.ets | 4 +- .../test/ast/compiler/ets/xgc_ea/xgc_ea.ets | 10 +- .../ast/compiler/ts/arithmetic_operators_1.ts | 2 +- .../compiler/ts/arithmetic_operators_10.ts | 2 +- .../compiler/ts/arithmetic_operators_11.ts | 2 +- .../compiler/ts/arithmetic_operators_12.ts | 2 +- .../compiler/ts/arithmetic_operators_13.ts | 2 +- .../compiler/ts/arithmetic_operators_14.ts | 2 +- .../compiler/ts/arithmetic_operators_15.ts | 2 +- .../compiler/ts/arithmetic_operators_16.ts | 2 +- .../compiler/ts/arithmetic_operators_17.ts | 2 +- .../compiler/ts/arithmetic_operators_18.ts | 2 +- .../compiler/ts/arithmetic_operators_19.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_2.ts | 2 +- .../compiler/ts/arithmetic_operators_20.ts | 2 +- .../compiler/ts/arithmetic_operators_21.ts | 2 +- .../compiler/ts/arithmetic_operators_22.ts | 2 +- .../compiler/ts/arithmetic_operators_23.ts | 2 +- .../compiler/ts/arithmetic_operators_24.ts | 2 +- .../compiler/ts/arithmetic_operators_25.ts | 2 +- .../compiler/ts/arithmetic_operators_26.ts | 2 +- .../compiler/ts/arithmetic_operators_27.ts | 2 +- .../compiler/ts/arithmetic_operators_28.ts | 2 +- .../compiler/ts/arithmetic_operators_29.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_3.ts | 2 +- .../compiler/ts/arithmetic_operators_30.ts | 2 +- .../compiler/ts/arithmetic_operators_31.ts | 2 +- .../compiler/ts/arithmetic_operators_32.ts | 2 +- .../compiler/ts/arithmetic_operators_33.ts | 2 +- .../compiler/ts/arithmetic_operators_34.ts | 2 +- .../compiler/ts/arithmetic_operators_35.ts | 2 +- .../compiler/ts/arithmetic_operators_36.ts | 2 +- .../compiler/ts/arithmetic_operators_37.ts | 2 +- .../compiler/ts/arithmetic_operators_38.ts | 2 +- .../compiler/ts/arithmetic_operators_39.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_4.ts | 2 +- .../compiler/ts/arithmetic_operators_40.ts | 2 +- .../compiler/ts/arithmetic_operators_41.ts | 2 +- .../compiler/ts/arithmetic_operators_42.ts | 2 +- .../compiler/ts/arithmetic_operators_43.ts | 2 +- .../compiler/ts/arithmetic_operators_44.ts | 2 +- .../compiler/ts/arithmetic_operators_45.ts | 2 +- .../compiler/ts/arithmetic_operators_46.ts | 2 +- .../compiler/ts/arithmetic_operators_47.ts | 2 +- .../compiler/ts/arithmetic_operators_48.ts | 2 +- .../compiler/ts/arithmetic_operators_49.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_5.ts | 2 +- .../compiler/ts/arithmetic_operators_50.ts | 2 +- .../compiler/ts/arithmetic_operators_51.ts | 2 +- .../compiler/ts/arithmetic_operators_52.ts | 2 +- .../compiler/ts/arithmetic_operators_53.ts | 2 +- .../compiler/ts/arithmetic_operators_54.ts | 2 +- .../compiler/ts/arithmetic_operators_55.ts | 2 +- .../compiler/ts/arithmetic_operators_56.ts | 2 +- .../compiler/ts/arithmetic_operators_57.ts | 2 +- .../compiler/ts/arithmetic_operators_58.ts | 2 +- .../compiler/ts/arithmetic_operators_59.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_6.ts | 2 +- .../compiler/ts/arithmetic_operators_60.ts | 2 +- .../compiler/ts/arithmetic_operators_61.ts | 2 +- .../compiler/ts/arithmetic_operators_62.ts | 2 +- .../compiler/ts/arithmetic_operators_63.ts | 2 +- .../compiler/ts/arithmetic_operators_64.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_7.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_8.ts | 2 +- .../ast/compiler/ts/arithmetic_operators_9.ts | 2 +- .../ast/compiler/ts/arrayDestructuring1.ts | 2 +- .../ast/compiler/ts/arrayDestructuring10.ts | 2 +- .../ast/compiler/ts/arrayDestructuring11.ts | 2 +- .../ast/compiler/ts/arrayDestructuring12.ts | 2 +- .../ast/compiler/ts/arrayDestructuring13.ts | 2 +- .../ast/compiler/ts/arrayDestructuring14.ts | 2 +- .../ast/compiler/ts/arrayDestructuring15.ts | 2 +- .../ast/compiler/ts/arrayDestructuring16.ts | 2 +- .../ast/compiler/ts/arrayDestructuring17.ts | 2 +- .../ast/compiler/ts/arrayDestructuring18.ts | 2 +- .../ast/compiler/ts/arrayDestructuring19.ts | 2 +- .../ast/compiler/ts/arrayDestructuring2.ts | 2 +- .../ast/compiler/ts/arrayDestructuring20.ts | 2 +- .../ast/compiler/ts/arrayDestructuring21.ts | 2 +- .../ast/compiler/ts/arrayDestructuring22.ts | 2 +- .../ast/compiler/ts/arrayDestructuring23.ts | 2 +- .../ast/compiler/ts/arrayDestructuring24.ts | 2 +- .../ast/compiler/ts/arrayDestructuring25.ts | 2 +- .../ast/compiler/ts/arrayDestructuring26.ts | 2 +- .../ast/compiler/ts/arrayDestructuring27.ts | 2 +- .../ast/compiler/ts/arrayDestructuring28.ts | 2 +- .../ast/compiler/ts/arrayDestructuring29.ts | 2 +- .../ast/compiler/ts/arrayDestructuring3.ts | 2 +- .../ast/compiler/ts/arrayDestructuring30.ts | 2 +- .../ast/compiler/ts/arrayDestructuring31.ts | 2 +- .../ast/compiler/ts/arrayDestructuring32.ts | 2 +- .../ast/compiler/ts/arrayDestructuring33.ts | 2 +- .../ast/compiler/ts/arrayDestructuring34.ts | 2 +- .../ast/compiler/ts/arrayDestructuring35.ts | 2 +- .../ast/compiler/ts/arrayDestructuring36.ts | 2 +- .../ast/compiler/ts/arrayDestructuring37.ts | 2 +- .../ast/compiler/ts/arrayDestructuring38.ts | 2 +- .../ast/compiler/ts/arrayDestructuring39.ts | 2 +- .../ast/compiler/ts/arrayDestructuring4.ts | 2 +- .../ast/compiler/ts/arrayDestructuring40.ts | 2 +- .../ast/compiler/ts/arrayDestructuring41.ts | 2 +- .../ast/compiler/ts/arrayDestructuring42.ts | 2 +- .../ast/compiler/ts/arrayDestructuring43.ts | 2 +- .../ast/compiler/ts/arrayDestructuring44.ts | 2 +- .../ast/compiler/ts/arrayDestructuring5.ts | 2 +- .../ast/compiler/ts/arrayDestructuring6.ts | 2 +- .../ast/compiler/ts/arrayDestructuring7.ts | 2 +- .../ast/compiler/ts/arrayDestructuring8.ts | 2 +- .../ast/compiler/ts/arrayDestructuring9.ts | 2 +- ets2panda/test/ast/compiler/ts/array_1.ts | 2 +- ets2panda/test/ast/compiler/ts/array_10.ts | 2 +- ets2panda/test/ast/compiler/ts/array_11.ts | 2 +- ets2panda/test/ast/compiler/ts/array_12.ts | 2 +- ets2panda/test/ast/compiler/ts/array_13.ts | 2 +- ets2panda/test/ast/compiler/ts/array_14.ts | 2 +- ets2panda/test/ast/compiler/ts/array_15.ts | 2 +- ets2panda/test/ast/compiler/ts/array_16.ts | 2 +- ets2panda/test/ast/compiler/ts/array_17.ts | 2 +- ets2panda/test/ast/compiler/ts/array_18.ts | 2 +- ets2panda/test/ast/compiler/ts/array_19.ts | 2 +- ets2panda/test/ast/compiler/ts/array_2.ts | 2 +- ets2panda/test/ast/compiler/ts/array_20.ts | 2 +- ets2panda/test/ast/compiler/ts/array_21.ts | 2 +- ets2panda/test/ast/compiler/ts/array_22.ts | 2 +- ets2panda/test/ast/compiler/ts/array_23.ts | 2 +- ets2panda/test/ast/compiler/ts/array_24.ts | 2 +- ets2panda/test/ast/compiler/ts/array_3.ts | 2 +- ets2panda/test/ast/compiler/ts/array_4.ts | 2 +- ets2panda/test/ast/compiler/ts/array_5.ts | 2 +- ets2panda/test/ast/compiler/ts/array_6.ts | 2 +- ets2panda/test/ast/compiler/ts/array_7.ts | 2 +- ets2panda/test/ast/compiler/ts/array_8.ts | 2 +- ets2panda/test/ast/compiler/ts/array_9.ts | 2 +- .../ast/compiler/ts/array_expression_1.ts | 2 +- .../test/ast/compiler/ts/as_expression_1.ts | 2 +- .../test/ast/compiler/ts/as_expression_10.ts | 2 +- .../test/ast/compiler/ts/as_expression_11.ts | 2 +- .../test/ast/compiler/ts/as_expression_12.ts | 2 +- .../test/ast/compiler/ts/as_expression_13.ts | 2 +- .../test/ast/compiler/ts/as_expression_14.ts | 2 +- .../test/ast/compiler/ts/as_expression_15.ts | 2 +- .../test/ast/compiler/ts/as_expression_2.ts | 2 +- .../test/ast/compiler/ts/as_expression_3.ts | 2 +- .../test/ast/compiler/ts/as_expression_4.ts | 2 +- .../test/ast/compiler/ts/as_expression_5.ts | 2 +- .../test/ast/compiler/ts/as_expression_6.ts | 2 +- .../test/ast/compiler/ts/as_expression_7.ts | 2 +- .../test/ast/compiler/ts/as_expression_8.ts | 2 +- .../test/ast/compiler/ts/as_expression_9.ts | 2 +- .../test/ast/compiler/ts/assignment_never.ts | 2 +- .../test/ast/compiler/ts/call_expression_1.ts | 2 +- .../ast/compiler/ts/cannotAssignToConst.ts | 2 +- .../compiler/ts/constUsedBeforeDeclaration.ts | 2 +- .../test/ast/compiler/ts/functionCall_1.ts | 2 +- .../test/ast/compiler/ts/functionCall_10.ts | 2 +- .../test/ast/compiler/ts/functionCall_11.ts | 2 +- .../test/ast/compiler/ts/functionCall_12.ts | 2 +- .../test/ast/compiler/ts/functionCall_13.ts | 2 +- .../test/ast/compiler/ts/functionCall_14.ts | 2 +- .../test/ast/compiler/ts/functionCall_15.ts | 2 +- .../test/ast/compiler/ts/functionCall_2.ts | 2 +- .../test/ast/compiler/ts/functionCall_3.ts | 2 +- .../test/ast/compiler/ts/functionCall_4.ts | 2 +- .../test/ast/compiler/ts/functionCall_5.ts | 2 +- .../test/ast/compiler/ts/functionCall_6.ts | 2 +- .../test/ast/compiler/ts/functionCall_7.ts | 2 +- .../test/ast/compiler/ts/functionCall_8.ts | 2 +- .../test/ast/compiler/ts/functionCall_9.ts | 2 +- .../test/ast/compiler/ts/functionOverload3.ts | 2 +- .../ast/compiler/ts/functionWithPattern1.ts | 2 +- .../ast/compiler/ts/functionWithPattern10.ts | 2 +- .../ast/compiler/ts/functionWithPattern11.ts | 2 +- .../ast/compiler/ts/functionWithPattern12.ts | 2 +- .../ast/compiler/ts/functionWithPattern2.ts | 2 +- .../ast/compiler/ts/functionWithPattern3.ts | 2 +- .../ast/compiler/ts/functionWithPattern4.ts | 2 +- .../ast/compiler/ts/functionWithPattern5.ts | 2 +- .../ast/compiler/ts/functionWithPattern6.ts | 2 +- .../ast/compiler/ts/functionWithPattern7.ts | 2 +- .../ast/compiler/ts/functionWithPattern8.ts | 2 +- .../ast/compiler/ts/functionWithPattern9.ts | 2 +- .../ast/compiler/ts/function_declaration_1.ts | 2 +- .../compiler/ts/function_declaration_10.ts | 2 +- .../compiler/ts/function_declaration_11.ts | 2 +- .../ast/compiler/ts/function_declaration_2.ts | 2 +- .../ast/compiler/ts/function_declaration_3.ts | 2 +- .../ast/compiler/ts/function_declaration_4.ts | 2 +- .../ast/compiler/ts/function_declaration_5.ts | 2 +- .../ast/compiler/ts/function_declaration_6.ts | 2 +- .../ast/compiler/ts/function_declaration_7.ts | 2 +- .../ast/compiler/ts/function_declaration_8.ts | 2 +- .../ast/compiler/ts/function_declaration_9.ts | 2 +- .../ts/identifierWithoutDeclaration.ts | 2 +- .../ts/identifier_optional_negative.ts | 2 +- ets2panda/test/ast/compiler/ts/in_1.ts | 2 +- ets2panda/test/ast/compiler/ts/in_10.ts | 2 +- ets2panda/test/ast/compiler/ts/in_11.ts | 2 +- ets2panda/test/ast/compiler/ts/in_12.ts | 2 +- ets2panda/test/ast/compiler/ts/in_13.ts | 2 +- ets2panda/test/ast/compiler/ts/in_14.ts | 2 +- ets2panda/test/ast/compiler/ts/in_15.ts | 2 +- ets2panda/test/ast/compiler/ts/in_2.ts | 2 +- ets2panda/test/ast/compiler/ts/in_3.ts | 2 +- ets2panda/test/ast/compiler/ts/in_4.ts | 2 +- ets2panda/test/ast/compiler/ts/in_5.ts | 2 +- ets2panda/test/ast/compiler/ts/in_6.ts | 2 +- ets2panda/test/ast/compiler/ts/in_7.ts | 2 +- ets2panda/test/ast/compiler/ts/in_8.ts | 2 +- ets2panda/test/ast/compiler/ts/in_9.ts | 2 +- .../test/ast/compiler/ts/instanceof_1.ts | 2 +- .../test/ast/compiler/ts/instanceof_10.ts | 2 +- .../test/ast/compiler/ts/instanceof_11.ts | 2 +- .../test/ast/compiler/ts/instanceof_12.ts | 2 +- .../test/ast/compiler/ts/instanceof_13.ts | 2 +- .../test/ast/compiler/ts/instanceof_14.ts | 2 +- .../test/ast/compiler/ts/instanceof_2.ts | 2 +- .../test/ast/compiler/ts/instanceof_3.ts | 2 +- .../test/ast/compiler/ts/instanceof_4.ts | 2 +- .../test/ast/compiler/ts/instanceof_5.ts | 2 +- .../test/ast/compiler/ts/instanceof_6.ts | 2 +- .../test/ast/compiler/ts/instanceof_7.ts | 2 +- .../test/ast/compiler/ts/instanceof_8.ts | 2 +- .../test/ast/compiler/ts/instanceof_9.ts | 2 +- .../ast/compiler/ts/interfaceAssignment1.ts | 2 +- .../ast/compiler/ts/interfaceAssignment2.ts | 2 +- .../ast/compiler/ts/interfaceAssignment3.ts | 2 +- .../ast/compiler/ts/interfaceAssignment4.ts | 2 +- .../ast/compiler/ts/interfaceAssignment5.ts | 2 +- .../ast/compiler/ts/interfaceAssignment6.ts | 2 +- .../ast/compiler/ts/interfaceAssignment7.ts | 2 +- .../ast/compiler/ts/interfaceAssignment8.ts | 2 +- .../ast/compiler/ts/interfaceInheritance1.ts | 2 +- .../ast/compiler/ts/interfaceInheritance2.ts | 2 +- .../ast/compiler/ts/interfaceInheritance3.ts | 2 +- .../ast/compiler/ts/interfaceInheritance4.ts | 2 +- ...cePropertyReferenceContainingInterface1.ts | 2 +- ...erfacePropertyWithIncompatibleIndexInfo.ts | 2 +- .../ast/compiler/ts/interfaceUsedAsValue.ts | 2 +- .../interfaceWithNonCompatibleIndexInfos.ts | 2 +- .../compiler/ts/letUsedBeforeDeclaration.ts | 2 +- .../test/ast/compiler/ts/memberExpTest_1.ts | 2 +- .../test/ast/compiler/ts/memberExpTest_2.ts | 2 +- .../test/ast/compiler/ts/memberExpTest_3.ts | 2 +- .../test/ast/compiler/ts/memberExpTest_4.ts | 2 +- .../test/ast/compiler/ts/memberExpTest_5.ts | 2 +- .../test/ast/compiler/ts/memberExpTest_6.ts | 2 +- .../ast/compiler/ts/member_expression_1.ts | 2 +- .../ast/compiler/ts/member_expression_10.ts | 2 +- .../ast/compiler/ts/member_expression_11.ts | 2 +- .../ast/compiler/ts/member_expression_12.ts | 2 +- .../ast/compiler/ts/member_expression_13.ts | 2 +- .../ast/compiler/ts/member_expression_14.ts | 2 +- .../ast/compiler/ts/member_expression_15.ts | 2 +- .../ast/compiler/ts/member_expression_16.ts | 2 +- .../ast/compiler/ts/member_expression_17.ts | 2 +- .../ast/compiler/ts/member_expression_18.ts | 2 +- .../ast/compiler/ts/member_expression_19.ts | 2 +- .../ast/compiler/ts/member_expression_2.ts | 2 +- .../ast/compiler/ts/member_expression_20.ts | 2 +- .../ast/compiler/ts/member_expression_21.ts | 2 +- .../ast/compiler/ts/member_expression_22.ts | 2 +- .../ast/compiler/ts/member_expression_23.ts | 2 +- .../ast/compiler/ts/member_expression_24.ts | 2 +- .../ast/compiler/ts/member_expression_25.ts | 2 +- .../ast/compiler/ts/member_expression_26.ts | 2 +- .../ast/compiler/ts/member_expression_27.ts | 2 +- .../ast/compiler/ts/member_expression_28.ts | 2 +- .../ast/compiler/ts/member_expression_29.ts | 2 +- .../ast/compiler/ts/member_expression_3.ts | 2 +- .../ast/compiler/ts/member_expression_30.ts | 2 +- .../ast/compiler/ts/member_expression_31.ts | 2 +- .../ast/compiler/ts/member_expression_32.ts | 2 +- .../ast/compiler/ts/member_expression_33.ts | 2 +- .../ast/compiler/ts/member_expression_34.ts | 2 +- .../ast/compiler/ts/member_expression_35.ts | 2 +- .../ast/compiler/ts/member_expression_36.ts | 2 +- .../ast/compiler/ts/member_expression_37.ts | 2 +- .../ast/compiler/ts/member_expression_38.ts | 2 +- .../ast/compiler/ts/member_expression_39.ts | 2 +- .../ast/compiler/ts/member_expression_4.ts | 2 +- .../ast/compiler/ts/member_expression_40.ts | 2 +- .../ast/compiler/ts/member_expression_41.ts | 2 +- .../ast/compiler/ts/member_expression_42.ts | 2 +- .../ast/compiler/ts/member_expression_43.ts | 2 +- .../ast/compiler/ts/member_expression_44.ts | 2 +- .../ast/compiler/ts/member_expression_45.ts | 2 +- .../ast/compiler/ts/member_expression_46.ts | 2 +- .../ast/compiler/ts/member_expression_47.ts | 2 +- .../ast/compiler/ts/member_expression_48.ts | 2 +- .../ast/compiler/ts/member_expression_49.ts | 2 +- .../ast/compiler/ts/member_expression_5.ts | 2 +- .../ast/compiler/ts/member_expression_50.ts | 2 +- .../ast/compiler/ts/member_expression_51.ts | 2 +- .../ast/compiler/ts/member_expression_52.ts | 2 +- .../ast/compiler/ts/member_expression_53.ts | 2 +- .../ast/compiler/ts/member_expression_54.ts | 2 +- .../ast/compiler/ts/member_expression_55.ts | 2 +- .../ast/compiler/ts/member_expression_56.ts | 2 +- .../ast/compiler/ts/member_expression_57.ts | 2 +- .../ast/compiler/ts/member_expression_58.ts | 2 +- .../ast/compiler/ts/member_expression_59.ts | 2 +- .../ast/compiler/ts/member_expression_6.ts | 2 +- .../ast/compiler/ts/member_expression_60.ts | 2 +- .../ast/compiler/ts/member_expression_61.ts | 2 +- .../ast/compiler/ts/member_expression_62.ts | 2 +- .../ast/compiler/ts/member_expression_63.ts | 2 +- .../ast/compiler/ts/member_expression_64.ts | 2 +- .../ast/compiler/ts/member_expression_65.ts | 2 +- .../ast/compiler/ts/member_expression_66.ts | 2 +- .../ast/compiler/ts/member_expression_67.ts | 2 +- .../ast/compiler/ts/member_expression_68.ts | 2 +- .../ast/compiler/ts/member_expression_69.ts | 2 +- .../ast/compiler/ts/member_expression_7.ts | 2 +- .../ast/compiler/ts/member_expression_70.ts | 2 +- .../ast/compiler/ts/member_expression_71.ts | 2 +- .../ast/compiler/ts/member_expression_72.ts | 2 +- .../ast/compiler/ts/member_expression_73.ts | 2 +- .../ast/compiler/ts/member_expression_74.ts | 2 +- .../ast/compiler/ts/member_expression_75.ts | 2 +- .../ast/compiler/ts/member_expression_76.ts | 2 +- .../ast/compiler/ts/member_expression_77.ts | 2 +- .../ast/compiler/ts/member_expression_8.ts | 2 +- .../ast/compiler/ts/member_expression_80.ts | 2 +- .../ast/compiler/ts/member_expression_81.ts | 2 +- .../ast/compiler/ts/member_expression_82.ts | 2 +- .../test/ast/compiler/ts/new_expression_1.ts | 2 +- .../test/ast/compiler/ts/new_expression_10.ts | 2 +- .../ast/compiler/ts/new_expression_100.ts | 2 +- .../ast/compiler/ts/new_expression_101.ts | 2 +- .../ast/compiler/ts/new_expression_102.ts | 2 +- .../ast/compiler/ts/new_expression_103.ts | 2 +- .../ast/compiler/ts/new_expression_104.ts | 2 +- .../ast/compiler/ts/new_expression_105.ts | 2 +- .../ast/compiler/ts/new_expression_106.ts | 2 +- .../ast/compiler/ts/new_expression_107.ts | 2 +- .../ast/compiler/ts/new_expression_108.ts | 2 +- .../ast/compiler/ts/new_expression_109.ts | 2 +- .../test/ast/compiler/ts/new_expression_11.ts | 2 +- .../ast/compiler/ts/new_expression_110.ts | 2 +- .../ast/compiler/ts/new_expression_111.ts | 2 +- .../ast/compiler/ts/new_expression_112.ts | 2 +- .../ast/compiler/ts/new_expression_113.ts | 2 +- .../ast/compiler/ts/new_expression_114.ts | 2 +- .../ast/compiler/ts/new_expression_115.ts | 2 +- .../ast/compiler/ts/new_expression_116.ts | 2 +- .../ast/compiler/ts/new_expression_117.ts | 2 +- .../ast/compiler/ts/new_expression_118.ts | 2 +- .../ast/compiler/ts/new_expression_119.ts | 2 +- .../test/ast/compiler/ts/new_expression_12.ts | 2 +- .../ast/compiler/ts/new_expression_120.ts | 2 +- .../ast/compiler/ts/new_expression_121.ts | 2 +- .../ast/compiler/ts/new_expression_122.ts | 2 +- .../ast/compiler/ts/new_expression_123.ts | 2 +- .../ast/compiler/ts/new_expression_124.ts | 2 +- .../ast/compiler/ts/new_expression_125.ts | 2 +- .../ast/compiler/ts/new_expression_126.ts | 2 +- .../ast/compiler/ts/new_expression_127.ts | 2 +- .../ast/compiler/ts/new_expression_128.ts | 2 +- .../ast/compiler/ts/new_expression_129.ts | 2 +- .../test/ast/compiler/ts/new_expression_13.ts | 2 +- .../ast/compiler/ts/new_expression_130.ts | 2 +- .../ast/compiler/ts/new_expression_131.ts | 2 +- .../ast/compiler/ts/new_expression_132.ts | 2 +- .../ast/compiler/ts/new_expression_133.ts | 2 +- .../ast/compiler/ts/new_expression_134.ts | 2 +- .../ast/compiler/ts/new_expression_135.ts | 2 +- .../ast/compiler/ts/new_expression_136.ts | 2 +- .../ast/compiler/ts/new_expression_137.ts | 2 +- .../ast/compiler/ts/new_expression_138.ts | 2 +- .../ast/compiler/ts/new_expression_139.ts | 2 +- .../test/ast/compiler/ts/new_expression_14.ts | 2 +- .../ast/compiler/ts/new_expression_140.ts | 2 +- .../ast/compiler/ts/new_expression_141.ts | 2 +- .../ast/compiler/ts/new_expression_142.ts | 2 +- .../ast/compiler/ts/new_expression_143.ts | 2 +- .../ast/compiler/ts/new_expression_144.ts | 2 +- .../ast/compiler/ts/new_expression_145.ts | 2 +- .../ast/compiler/ts/new_expression_146.ts | 2 +- .../ast/compiler/ts/new_expression_147.ts | 2 +- .../ast/compiler/ts/new_expression_148.ts | 2 +- .../ast/compiler/ts/new_expression_149.ts | 2 +- .../test/ast/compiler/ts/new_expression_15.ts | 2 +- .../ast/compiler/ts/new_expression_150.ts | 2 +- .../ast/compiler/ts/new_expression_151.ts | 2 +- .../ast/compiler/ts/new_expression_152.ts | 2 +- .../ast/compiler/ts/new_expression_153.ts | 2 +- .../ast/compiler/ts/new_expression_154.ts | 2 +- .../ast/compiler/ts/new_expression_155.ts | 2 +- .../ast/compiler/ts/new_expression_156.ts | 2 +- .../ast/compiler/ts/new_expression_157.ts | 2 +- .../ast/compiler/ts/new_expression_158.ts | 2 +- .../ast/compiler/ts/new_expression_159.ts | 2 +- .../test/ast/compiler/ts/new_expression_16.ts | 2 +- .../ast/compiler/ts/new_expression_160.ts | 2 +- .../ast/compiler/ts/new_expression_161.ts | 2 +- .../ast/compiler/ts/new_expression_162.ts | 2 +- .../ast/compiler/ts/new_expression_163.ts | 2 +- .../ast/compiler/ts/new_expression_164.ts | 2 +- .../test/ast/compiler/ts/new_expression_17.ts | 2 +- .../test/ast/compiler/ts/new_expression_18.ts | 2 +- .../test/ast/compiler/ts/new_expression_19.ts | 2 +- .../test/ast/compiler/ts/new_expression_2.ts | 2 +- .../test/ast/compiler/ts/new_expression_20.ts | 2 +- .../test/ast/compiler/ts/new_expression_21.ts | 2 +- .../test/ast/compiler/ts/new_expression_22.ts | 2 +- .../test/ast/compiler/ts/new_expression_23.ts | 2 +- .../test/ast/compiler/ts/new_expression_24.ts | 2 +- .../test/ast/compiler/ts/new_expression_25.ts | 2 +- .../test/ast/compiler/ts/new_expression_26.ts | 2 +- .../test/ast/compiler/ts/new_expression_27.ts | 2 +- .../test/ast/compiler/ts/new_expression_28.ts | 2 +- .../test/ast/compiler/ts/new_expression_29.ts | 2 +- .../test/ast/compiler/ts/new_expression_3.ts | 2 +- .../test/ast/compiler/ts/new_expression_30.ts | 2 +- .../test/ast/compiler/ts/new_expression_31.ts | 2 +- .../test/ast/compiler/ts/new_expression_32.ts | 2 +- .../test/ast/compiler/ts/new_expression_33.ts | 2 +- .../test/ast/compiler/ts/new_expression_34.ts | 2 +- .../test/ast/compiler/ts/new_expression_35.ts | 2 +- .../test/ast/compiler/ts/new_expression_36.ts | 2 +- .../test/ast/compiler/ts/new_expression_37.ts | 2 +- .../test/ast/compiler/ts/new_expression_38.ts | 2 +- .../test/ast/compiler/ts/new_expression_39.ts | 2 +- .../test/ast/compiler/ts/new_expression_4.ts | 2 +- .../test/ast/compiler/ts/new_expression_40.ts | 2 +- .../test/ast/compiler/ts/new_expression_41.ts | 2 +- .../test/ast/compiler/ts/new_expression_42.ts | 2 +- .../test/ast/compiler/ts/new_expression_43.ts | 2 +- .../test/ast/compiler/ts/new_expression_44.ts | 2 +- .../test/ast/compiler/ts/new_expression_45.ts | 2 +- .../test/ast/compiler/ts/new_expression_46.ts | 2 +- .../test/ast/compiler/ts/new_expression_47.ts | 2 +- .../test/ast/compiler/ts/new_expression_48.ts | 2 +- .../test/ast/compiler/ts/new_expression_49.ts | 2 +- .../test/ast/compiler/ts/new_expression_5.ts | 2 +- .../test/ast/compiler/ts/new_expression_50.ts | 2 +- .../test/ast/compiler/ts/new_expression_51.ts | 2 +- .../test/ast/compiler/ts/new_expression_52.ts | 2 +- .../test/ast/compiler/ts/new_expression_53.ts | 2 +- .../test/ast/compiler/ts/new_expression_54.ts | 2 +- .../test/ast/compiler/ts/new_expression_55.ts | 2 +- .../test/ast/compiler/ts/new_expression_56.ts | 2 +- .../test/ast/compiler/ts/new_expression_57.ts | 2 +- .../test/ast/compiler/ts/new_expression_58.ts | 2 +- .../test/ast/compiler/ts/new_expression_59.ts | 2 +- .../test/ast/compiler/ts/new_expression_6.ts | 2 +- .../test/ast/compiler/ts/new_expression_60.ts | 2 +- .../test/ast/compiler/ts/new_expression_61.ts | 2 +- .../test/ast/compiler/ts/new_expression_62.ts | 2 +- .../test/ast/compiler/ts/new_expression_63.ts | 2 +- .../test/ast/compiler/ts/new_expression_64.ts | 2 +- .../test/ast/compiler/ts/new_expression_65.ts | 2 +- .../test/ast/compiler/ts/new_expression_66.ts | 2 +- .../test/ast/compiler/ts/new_expression_67.ts | 2 +- .../test/ast/compiler/ts/new_expression_68.ts | 2 +- .../test/ast/compiler/ts/new_expression_69.ts | 2 +- .../test/ast/compiler/ts/new_expression_7.ts | 2 +- .../test/ast/compiler/ts/new_expression_70.ts | 2 +- .../test/ast/compiler/ts/new_expression_71.ts | 2 +- .../test/ast/compiler/ts/new_expression_72.ts | 2 +- .../test/ast/compiler/ts/new_expression_73.ts | 2 +- .../test/ast/compiler/ts/new_expression_74.ts | 2 +- .../test/ast/compiler/ts/new_expression_75.ts | 2 +- .../test/ast/compiler/ts/new_expression_76.ts | 2 +- .../test/ast/compiler/ts/new_expression_77.ts | 2 +- .../test/ast/compiler/ts/new_expression_78.ts | 2 +- .../test/ast/compiler/ts/new_expression_79.ts | 2 +- .../test/ast/compiler/ts/new_expression_8.ts | 2 +- .../test/ast/compiler/ts/new_expression_80.ts | 2 +- .../test/ast/compiler/ts/new_expression_81.ts | 2 +- .../test/ast/compiler/ts/new_expression_82.ts | 2 +- .../test/ast/compiler/ts/new_expression_83.ts | 2 +- .../test/ast/compiler/ts/new_expression_84.ts | 2 +- .../test/ast/compiler/ts/new_expression_85.ts | 2 +- .../test/ast/compiler/ts/new_expression_86.ts | 2 +- .../test/ast/compiler/ts/new_expression_87.ts | 2 +- .../test/ast/compiler/ts/new_expression_88.ts | 2 +- .../test/ast/compiler/ts/new_expression_89.ts | 2 +- .../test/ast/compiler/ts/new_expression_9.ts | 2 +- .../test/ast/compiler/ts/new_expression_90.ts | 2 +- .../test/ast/compiler/ts/new_expression_91.ts | 2 +- .../test/ast/compiler/ts/new_expression_92.ts | 2 +- .../test/ast/compiler/ts/new_expression_93.ts | 2 +- .../test/ast/compiler/ts/new_expression_94.ts | 2 +- .../test/ast/compiler/ts/new_expression_95.ts | 2 +- .../test/ast/compiler/ts/new_expression_96.ts | 2 +- .../test/ast/compiler/ts/new_expression_97.ts | 2 +- .../test/ast/compiler/ts/new_expression_98.ts | 2 +- .../test/ast/compiler/ts/new_expression_99.ts | 2 +- .../ast/compiler/ts/objectDestructuring1.ts | 2 +- .../ast/compiler/ts/objectDestructuring10.ts | 2 +- .../ast/compiler/ts/objectDestructuring11.ts | 2 +- .../ast/compiler/ts/objectDestructuring12.ts | 2 +- .../ast/compiler/ts/objectDestructuring13.ts | 2 +- .../ast/compiler/ts/objectDestructuring14.ts | 2 +- .../ast/compiler/ts/objectDestructuring15.ts | 2 +- .../ast/compiler/ts/objectDestructuring16.ts | 2 +- .../ast/compiler/ts/objectDestructuring17.ts | 2 +- .../ast/compiler/ts/objectDestructuring18.ts | 2 +- .../ast/compiler/ts/objectDestructuring19.ts | 2 +- .../ast/compiler/ts/objectDestructuring2.ts | 2 +- .../ast/compiler/ts/objectDestructuring20.ts | 2 +- .../ast/compiler/ts/objectDestructuring21.ts | 2 +- .../ast/compiler/ts/objectDestructuring22.ts | 2 +- .../ast/compiler/ts/objectDestructuring23.ts | 2 +- .../ast/compiler/ts/objectDestructuring24.ts | 2 +- .../ast/compiler/ts/objectDestructuring25.ts | 2 +- .../ast/compiler/ts/objectDestructuring26.ts | 2 +- .../ast/compiler/ts/objectDestructuring27.ts | 2 +- .../ast/compiler/ts/objectDestructuring28.ts | 2 +- .../ast/compiler/ts/objectDestructuring29.ts | 2 +- .../ast/compiler/ts/objectDestructuring3.ts | 2 +- .../ast/compiler/ts/objectDestructuring30.ts | 2 +- .../ast/compiler/ts/objectDestructuring31.ts | 2 +- .../ast/compiler/ts/objectDestructuring32.ts | 2 +- .../ast/compiler/ts/objectDestructuring33.ts | 2 +- .../ast/compiler/ts/objectDestructuring34.ts | 2 +- .../ast/compiler/ts/objectDestructuring35.ts | 2 +- .../ast/compiler/ts/objectDestructuring36.ts | 2 +- .../ast/compiler/ts/objectDestructuring37.ts | 2 +- .../ast/compiler/ts/objectDestructuring38.ts | 2 +- .../ast/compiler/ts/objectDestructuring39.ts | 2 +- .../ast/compiler/ts/objectDestructuring4.ts | 2 +- .../ast/compiler/ts/objectDestructuring40.ts | 2 +- .../ast/compiler/ts/objectDestructuring41.ts | 2 +- .../ast/compiler/ts/objectDestructuring5.ts | 2 +- .../ast/compiler/ts/objectDestructuring6.ts | 2 +- .../ast/compiler/ts/objectDestructuring7.ts | 2 +- .../ast/compiler/ts/objectDestructuring8.ts | 2 +- .../ast/compiler/ts/objectDestructuring9.ts | 2 +- .../ts/objectLiteralAssignability1.ts | 2 +- .../ts/objectLiteralAssignability10.ts | 2 +- .../ts/objectLiteralAssignability11.ts | 2 +- .../ts/objectLiteralAssignability12.ts | 2 +- .../ts/objectLiteralAssignability13.ts | 2 +- .../ts/objectLiteralAssignability14.ts | 2 +- .../ts/objectLiteralAssignability15.ts | 2 +- .../ts/objectLiteralAssignability16.ts | 2 +- .../ts/objectLiteralAssignability17.ts | 2 +- .../ts/objectLiteralAssignability18.ts | 2 +- .../ts/objectLiteralAssignability19.ts | 2 +- .../ts/objectLiteralAssignability2.ts | 2 +- .../ts/objectLiteralAssignability20.ts | 2 +- .../ts/objectLiteralAssignability3.ts | 2 +- .../ts/objectLiteralAssignability4.ts | 2 +- .../ts/objectLiteralAssignability5.ts | 2 +- .../ts/objectLiteralAssignability6.ts | 2 +- .../ts/objectLiteralAssignability7.ts | 2 +- .../ts/objectLiteralAssignability8.ts | 2 +- .../ts/objectLiteralAssignability9.ts | 2 +- .../ast/compiler/ts/object_expression_1.ts | 2 +- .../test/ast/compiler/ts/recursiveFunction.ts | 2 +- .../ts/recursiveTypeofWithProperty.ts | 2 +- .../ast/compiler/ts/switch_statement_bad.ts | 2 +- .../test/ast/compiler/ts/test-interface4.ts | 2 +- .../test/ast/compiler/ts/test-interface5.ts | 2 +- .../test/ast/compiler/ts/test-interface6.ts | 2 +- .../test/ast/compiler/ts/test-interface7.ts | 2 +- .../ast/compiler/ts/test-type-literal4.ts | 2 +- .../ast/compiler/ts/test-type-literal5.ts | 2 +- .../ast/compiler/ts/test-type-literal6.ts | 2 +- .../ast/compiler/ts/test-type-literal7.ts | 2 +- .../ts/test_variable_declaration_null.ts | 2 +- .../ast/compiler/ts/tupleAssignability1.ts | 2 +- .../ast/compiler/ts/tupleAssignability10.ts | 2 +- .../ast/compiler/ts/tupleAssignability11.ts | 2 +- .../ast/compiler/ts/tupleAssignability12.ts | 2 +- .../ast/compiler/ts/tupleAssignability13.ts | 2 +- .../ast/compiler/ts/tupleAssignability14.ts | 2 +- .../ast/compiler/ts/tupleAssignability15.ts | 2 +- .../ast/compiler/ts/tupleAssignability16.ts | 2 +- .../ast/compiler/ts/tupleAssignability17.ts | 2 +- .../ast/compiler/ts/tupleAssignability18.ts | 2 +- .../ast/compiler/ts/tupleAssignability19.ts | 2 +- .../ast/compiler/ts/tupleAssignability2.ts | 2 +- .../ast/compiler/ts/tupleAssignability20.ts | 2 +- .../ast/compiler/ts/tupleAssignability21.ts | 2 +- .../ast/compiler/ts/tupleAssignability22.ts | 2 +- .../ast/compiler/ts/tupleAssignability23.ts | 2 +- .../ast/compiler/ts/tupleAssignability24.ts | 2 +- .../ast/compiler/ts/tupleAssignability3.ts | 2 +- .../ast/compiler/ts/tupleAssignability4.ts | 2 +- .../ast/compiler/ts/tupleAssignability5.ts | 2 +- .../ast/compiler/ts/tupleAssignability6.ts | 2 +- .../ast/compiler/ts/tupleAssignability7.ts | 2 +- .../ast/compiler/ts/tupleAssignability8.ts | 2 +- .../ast/compiler/ts/tupleAssignability9.ts | 2 +- .../ast/compiler/ts/typeAliasUsedAsValue.ts | 2 +- .../compiler/ts/undefined_variable_name.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration1.ts | 2 +- .../ast/compiler/ts/varRedeclaration10.ts | 2 +- .../ast/compiler/ts/varRedeclaration11.ts | 2 +- .../ast/compiler/ts/varRedeclaration12.ts | 2 +- .../ast/compiler/ts/varRedeclaration13.ts | 2 +- .../ast/compiler/ts/varRedeclaration14.ts | 2 +- .../ast/compiler/ts/varRedeclaration15.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration2.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration3.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration4.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration5.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration6.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration7.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration8.ts | 2 +- .../test/ast/compiler/ts/varRedeclaration9.ts | 2 +- .../test/ast/parser/as/test_declare_method.ts | 2 +- .../test/ast/parser/as/test_decorator.ts | 4 +- .../test/ast/parser/as/test_decorators2.ts | 2 +- .../test/ast/parser/as/test_decorators3.ts | 3 +- .../test/ast/parser/as/test_interface1.ts | 2 +- .../test/ast/parser/as/test_interface2.ts | 2 +- .../test/ast/parser/as/test_interface3.ts | 2 +- .../test/ast/parser/as/test_interface4.ts | 2 +- .../test/ast/parser/as/test_interface5.ts | 14 +- .../ast/parser/as/test_object_literal1.ts | 4 +- .../ast/parser/as/test_object_literal2.ts | 4 +- .../ast/parser/as/test_object_literal3.ts | 3 +- .../ast/parser/as/test_object_literal4.ts | 2 +- .../ast/parser/as/test_type_annotation1.ts | 3 +- .../ast/parser/as/test_type_annotation2.ts | 3 +- .../ast/parser/as/test_type_annotation3.ts | 2 +- .../ast/parser/as/test_type_annotation4.ts | 3 +- .../ast/parser/as/test_type_annotation5.ts | 2 +- .../ast/parser/as/test_type_annotation6.ts | 3 +- .../test/ast/parser/ets/AllowSequence.ets | 2 +- .../ast/parser/ets/DeclareAsyncFunction.ets | 3 +- .../ast/parser/ets/Dollar_doller_invalid1.ets | 2 +- .../ast/parser/ets/Dollar_doller_invalid2.ets | 6 +- .../ast/parser/ets/Dollar_doller_invalid3.ets | 2 +- .../FunctionalTypeAsArrayElement.ets | 2 +- .../ets/FixedArray/InvalidStatements3.ets | 36 +- .../ets/FixedArray/MultipleParserErrors.ets | 252 +- .../ast/parser/ets/FixedArray/StringFasta.ets | 108 +- .../ast/parser/ets/FixedArray/array_2.ets | 8 +- .../ets/FixedArray/array_missing_element.ets | 10 +- .../ast/parser/ets/FixedArray/array_type.ets | 8 +- .../test/ast/parser/ets/FixedArray/enum11.ets | 6 +- .../ets_never_type_without_affect_other.ets | 4 +- .../ets/FixedArray/forOfCustomIterator1.ets | 6 +- .../ets/FixedArray/forOfCustomIterator2.ets | 6 +- .../ast/parser/ets/FixedArray/for_of_02.ets | 2 +- .../ast/parser/ets/FixedArray/for_of_03.ets | 4 +- .../ets/FixedArray/functionTypeParam_neg2.ets | 32 +- .../parser/ets/FixedArray/function_decl.ets | 2 +- .../parser/ets/FixedArray/invalidTypes.ets | 92 +- .../ets/FixedArray/main_entry_point_3.ets | 2 +- .../ets/FixedArray/main_entry_point_4.ets | 2 +- .../ets/FixedArray/main_entry_point_5.ets | 2 +- .../ast/parser/ets/FixedArray/method_full.ets | 10 +- .../FixedArray/n_arrayHoldingNullValue.ets | 4 +- .../ets/FixedArray/nonIntegralIndex.ets | 2 +- .../predefined_non_primitive_types.ets | 8 +- .../Readonly-with-ArrayType-test1.ets | 4 +- .../Readonly-with-ArrayType-test4.ets | 2 +- .../ets/FixedArray/record_object_value.ets | 8 +- .../ets/FixedArray/rest_parameter_04.ets | 8 +- .../ets/FixedArray/spreadArrayInTuple.ets | 8 +- .../spreadexpr_in_newexpr_neg01.ets | 18 +- .../spreadexpr_in_newexpr_neg02.ets | 2 +- .../parser/ets/FixedArray/static_field_3.ets | 2 +- .../ets/FixedArray/static_func_call_8.ets | 2 +- .../ets/FixedArray/superInConstructor3.ets | 2 +- .../ets/FixedArray/trailing_comma_1.ets | 64 +- .../ets/FixedArray/tuple_type_2_neg.ets | 22 +- .../FixedArray/type_argument_conversion.ets | 10 +- .../parser/ets/FixedArray/unclosed_loop.ets | 8 +- .../ets/FixedArray/unexpected_token_26.ets | 2 +- .../ets/FixedArray/unexpected_token_31.ets | 26 +- .../ets/FixedArray/unexpected_token_36.ets | 18 +- .../ets/FixedArray/unexpected_token_38.ets | 14 +- .../ets/FixedArray/unexpected_token_39.ets | 2 +- .../ets/FixedArray/unexpected_token_42.ets | 4 +- .../ets/FixedArray/unexpected_token_47.ets | 8 +- .../wrong-union-array-assignment.ets | 2 +- .../ets/FunctionalTypeAsArrayElement.ets | 2 +- .../ast/parser/ets/InitialCheckForGeneric.ets | 4 +- .../ets/InterfaceWithDefaultFunction1.ets | 2 +- .../ets/InterfaceWithDefaultFunction2.ets | 2 +- .../ets/Interface_variable_identifier.ets | 8 +- .../test/ast/parser/ets/InvalidClasses.ets | 106 +- .../ast/parser/ets/InvalidExpressions.ets | 2 +- .../ast/parser/ets/InvalidExpressions1.ets | 84 +- .../test/ast/parser/ets/InvalidParserImpl.ets | 6 +- .../ast/parser/ets/InvalidStatements1.ets | 36 +- .../ast/parser/ets/InvalidStatements2.ets | 24 +- .../ast/parser/ets/InvalidStatements3.ets | 36 +- .../test/ast/parser/ets/InvalidTyped.ets | 46 +- .../ets/Multiline_string_escape_char.ets | 6 +- .../ast/parser/ets/MultipleClassErrors.ets | 18 +- .../ast/parser/ets/MultipleFunctionErrors.ets | 10 +- .../ast/parser/ets/MultipleParserErrors.ets | 246 +- ets2panda/test/ast/parser/ets/SmartCast_3.ets | 2 +- ets2panda/test/ast/parser/ets/SmartCast_4.ets | 2 +- ets2panda/test/ast/parser/ets/StringFasta.ets | 108 +- ets2panda/test/ast/parser/ets/StructTest1.ets | 2 +- ets2panda/test/ast/parser/ets/StructTest2.ets | 2 +- ets2panda/test/ast/parser/ets/StructTest3.ets | 2 +- .../test/ast/parser/ets/UnexpectedToken.ets | 22 +- .../parser/ets/abstract_class_modidier.ets | 2 +- .../test/ast/parser/ets/access_modifier_1.ets | 2 +- .../test/ast/parser/ets/access_modifier_4.ets | 2 +- .../test/ast/parser/ets/accessor_call.ets | 2 +- .../test/ast/parser/ets/accessor_void.ets | 2 +- .../parser/ets/accessor_with_this_param.ets | 10 +- .../parser/ets/ambient_class_missing_body.ets | 2 +- .../ast/parser/ets/ambient_declaration.ets | 8 +- .../ast/parser/ets/ambient_indexer_10.ets | 2 +- .../test/ast/parser/ets/ambient_indexer_2.ets | 2 +- .../test/ast/parser/ets/ambient_indexer_3.ets | 10 +- .../test/ast/parser/ets/ambient_indexer_4.ets | 8 +- .../test/ast/parser/ets/ambient_indexer_5.ets | 6 +- .../test/ast/parser/ets/ambient_indexer_7.ets | 6 +- .../test/ast/parser/ets/ambient_indexer_8.ets | 10 +- .../test/ast/parser/ets/ambient_indexer_9.ets | 2 +- .../ets/ambient_iterable_declaration.ets | 2 +- .../test/ast/parser/ets/ambiguous_call_1.ets | 2 +- .../test/ast/parser/ets/ambiguous_call_2.ets | 4 +- .../test/ast/parser/ets/ambiguous_call_3.ets | 2 +- .../ets/anno_interface_invalid_error.ets | 6 +- .../annotationDecl_bad_initializer01.ets | 6 +- .../annotationDecl_bad_initializer02.ets | 4 +- .../annotationDecl_bad_initializer06.ets | 2 +- .../annotationDecl_classDecl_conflict.ets | 4 +- .../annotationDecl_enum_conflict.ets | 2 +- .../annotationDecl_field_with_modifiers01.ets | 2 +- .../annotationDecl_field_with_modifiers02.ets | 2 +- .../annotationDecl_field_with_modifiers03.ets | 2 +- .../annotationDecl_field_with_modifiers04.ets | 3 +- .../annotationDecl_interface_conflict.ets | 4 +- .../annotationDecl_locally.ets | 4 +- ...nnotationDecl_missing_typeAnnotation01.ets | 2 +- ...nnotationDecl_missing_typeAnnotation02.ets | 2 +- ...nnotationDecl_missing_typeAnnotation03.ets | 2 +- .../annotationDecl_parser_bad_token01.ets | 2 +- .../annotationDecl_parser_bad_token02.ets | 10 +- .../annotationDecl_parser_bad_token03.ets | 10 +- .../annotationDecl_parser_bad_token04.ets | 8 +- .../annotationDecl_parser_bad_token05.ets | 2 +- .../annotationDecl_parser_bad_token06.ets | 8 +- .../annotationDecl_parser_bad_token07.ets | 4 +- .../annotationDecl_redefined.ets | 2 +- .../annotationDecl_with_access_modifier01.ets | 6 +- .../annotationDecl_with_access_modifier02.ets | 6 +- .../annotationDecl_with_access_modifier03.ets | 4 +- .../annotationDecl_with_innerclass.ets | 12 +- .../annotationDecl_with_method.ets | 14 +- .../annotationUsage_bad_param01.ets | 6 +- .../annotationUsage_bad_param02.ets | 6 +- .../annotationUsage_bad_param03.ets | 4 +- .../annotationUsage_bad_param04.ets | 4 +- .../annotationUsage_bad_param05.ets | 2 +- .../annotationUsage_bad_param06.ets | 6 +- .../annotationUsage_bad_param07.ets | 6 +- ...ationUsage_bad_param_for_classproperty.ets | 12 +- ...tionUsage_bad_param_for_function_param.ets | 6 +- ...age_bad_param_for_global_variable_decl.ets | 6 +- ...nnotationUsage_bad_param_for_interface.ets | 6 +- ...ionUsage_bad_param_for_interfacemethod.ets | 6 +- ...nUsage_bad_param_for_interfaceproperty.ets | 8 +- .../annotationUsage_bad_param_for_lambda.ets | 4 +- ...sage_bad_param_for_local_variable_decl.ets | 6 +- ...notationUsage_bad_param_for_type_alias.ets | 10 +- .../annotationUsage_for_invalid_expr.ets | 4 +- ...tionUsage_missing_AT_for_classproperty.ets | 10 +- ...ionUsage_missing_AT_for_function_param.ets | 82 +- .../annotationUsage_missing_initializer01.ets | 2 +- .../annotationUsage_on_annotationDecl.ets | 2 +- .../annotationUsage_parser_bad_token01.ets | 10 +- .../annotationUsage_parser_bad_token02.ets | 4 +- .../annotationUsage_parser_bad_token03.ets | 8 +- .../annotationUsage_parser_bad_token04.ets | 8 +- .../annotationUsage_parser_bad_token05.ets | 8 +- .../annotations_tests/annotationUsage_tmp.ets | 6 +- .../annotation_default_export.ets | 2 +- .../annotation_rename_export.ets | 2 +- .../annotation_rename_import.ets | 2 +- .../annotation_usage_wrong_ref.ets | 2 +- .../test/ast/parser/ets/anonymous_class.ets | 4 +- ets2panda/test/ast/parser/ets/array_2.ets | 8 +- .../parser/ets/array_literal_inference.ets | 2 +- .../ast/parser/ets/array_missing_element.ets | 10 +- .../test/ast/parser/ets/array_new_failed.ets | 2 +- ets2panda/test/ast/parser/ets/array_type.ets | 8 +- ...y_union_type_not_contains_nullish_type.ets | 2 +- ets2panda/test/ast/parser/ets/arrow_1.ets | 2 +- .../ets/assert_with_not_boolean_type_1.ets | 4 +- .../ets/assert_with_not_boolean_type_2.ets | 4 +- .../test/ast/parser/ets/assign-func-iface.ets | 4 +- ets2panda/test/ast/parser/ets/assign_bad.ets | 12 +- ...functional_variable_to_functional_type.ets | 2 +- ...nctional_variable_to_functional_type_1.ets | 2 +- .../parser/ets/assignment_with_wrong_type.ets | 2 +- .../ets/asteriks_in_selective_binding.ets | 8 +- .../ast/parser/ets/async_abstract_bad.ets | 2 +- ets2panda/test/ast/parser/ets/async_ctor.ets | 2 +- .../parser/ets/async_func_return_type_bad.ets | 2 +- .../ast/parser/ets/async_function_bad.ets | 20 +- .../test/ast/parser/ets/async_lambda_bad.ets | 2 +- .../test/ast/parser/ets/async_method_bad.ets | 6 +- .../ast/parser/ets/await_argument_null.ets | 4 +- .../test/ast/parser/ets/await_object_bad.ets | 4 +- .../test/ast/parser/ets/await_promise_bad.ets | 4 +- ...all_expression_for_non_functional_type.ets | 4 +- ets2panda/test/ast/parser/ets/calls.ets | 2 +- .../ast/parser/ets/cast_expressions10.ets | 6 +- .../test/ast/parser/ets/cast_expressions2.ets | 2 +- .../test/ast/parser/ets/cast_expressions7.ets | 6 +- .../test/ast/parser/ets/cast_expressions9.ets | 2 +- .../ast/parser/ets/circular_class_extends.ets | 2 +- .../ets/circular_in_class_functions.ets | 10 +- .../ast/parser/ets/circular_type_in_alias.ets | 34 +- .../ets/circulary_interface_declaration.ets | 2 +- .../class-instance-field-redeclaration.ets | 2 +- .../ets/class-static-field-redeclaration.ets | 2 +- .../ast/parser/ets/classAsFunctionParam.ets | 6 +- .../test/ast/parser/ets/class_as_object_1.ets | 5 +- .../test/ast/parser/ets/class_composite_1.ets | 4 +- .../ets/class_composite_invalid_target.ets | 2 +- .../class_interface_enum_only_top_level_1.ets | 2 +- .../class_interface_enum_only_top_level_2.ets | 2 +- .../class_interface_enum_only_top_level_3.ets | 2 +- .../test/ast/parser/ets/class_keyword.ets | 12 +- ..._late_initialization_conflict_modifier.ets | 8 +- ...late_initialization_with_initalizer_01.ets | 2 +- ...late_initialization_with_initalizer_02.ets | 8 +- ...late_initialization_with_initalizer_03.ets | 4 +- ...te_initialization_with_invalid_type_01.ets | 8 +- ...te_initialization_with_invalid_type_02.ets | 10 +- ...te_initialization_with_invalid_type_03.ets | 4 +- ...te_initialization_with_invalid_type_04.ets | 2 +- .../parser/ets/class_optional_property.ets | 2 +- .../ast/parser/ets/class_property_access.ets | 2 +- ...c_late_initialization_assignment_error.ets | 2 +- .../ast/parser/ets/class_variable_empty.ets | 8 +- .../test/ast/parser/ets/comma_only_in_for.ets | 2 +- .../ast/parser/ets/comma_only_in_for_2.ets | 2 +- .../ast/parser/ets/constFloatInSwitch.ets | 4 +- .../ets/constant_expression_divide_zero.ets | 4 +- .../parser/ets/constructorFunctionType_n.ets | 2 +- .../parser/ets/constructor_default_super.ets | 2 +- .../ets/constructor_functionbody_nullptr.ets | 2 +- .../parser/ets/constructor_super_call2.ets | 2 +- .../ets/constructor_type_inference_crash.ets | 9 +- .../parser/ets/constructor_with_return_1.ets | 2 +- .../parser/ets/constructor_with_return_3.ets | 2 +- .../test/ast/parser/ets/constructors.ets | 2 +- .../test/ast/parser/ets/cycle_constructor.ets | 8 +- .../test/ast/parser/ets/decl_in_param.ets | 6 +- .../parser/ets/declare_ambient_context.ets | 2 +- .../ast/parser/ets/declare_annotation.ets | 18 +- .../ast/parser/ets/declare_class_bad_1.ets | 6 +- .../ast/parser/ets/declare_class_bad_2.ets | 2 +- .../ast/parser/ets/declare_class_bad_3.ets | 6 +- .../ast/parser/ets/declare_class_bad_4.ets | 2 +- .../ast/parser/ets/declare_class_bad_5.ets | 24 +- .../test/ast/parser/ets/declare_class_neg.ets | 6 +- .../test/ast/parser/ets/declare_func_bad.ets | 2 +- .../ast/parser/ets/declare_namespace_5.ets | 18 +- .../ast/parser/ets/default_parameter2.ets | 4 +- .../ast/parser/ets/default_parameter3.ets | 2 +- .../ast/parser/ets/differentTypeCompare.ets | 2 +- .../ast/parser/ets/distinguishable-decl-1.ets | 2 +- ets2panda/test/ast/parser/ets/do_while.ets | 12 +- .../parser/ets/do_while_with_empty_body.ets | 16 +- .../ets/do_while_with_empty_condition.ets | 6 +- ...sis_invocation_setter_supposed_to_fail.ets | 14 +- ...arenthesis_invocation_supposed_to_fail.ets | 16 +- .../ast/parser/ets/duplicated_identifier.ets | 2 +- .../dynamic_class_ctor_decl_import_bad.ets | 6 +- .../dynamic_class_field_decl_import_bad_1.ets | 2 +- .../dynamic_class_field_decl_import_bad_2.ets | 2 +- .../dynamic_class_interface.ets | 16 +- ...dynamic_class_method_decl_import_bad_1.ets | 4 +- ...dynamic_class_method_decl_import_bad_2.ets | 2 +- .../dynamic_func_decl_import_bad.ets | 4 +- ...static_class_extends_dynamic_class_bad.ets | 2 +- ...tatic_class_impl_dynamic_interface_bad.ets | 2 +- ...nterface_extends_dynamic_interface_bad.ets | 2 +- .../parser/ets/dynmicImportUnimplemented.ets | 4 +- .../ets/empty_array_map_inference_fail.ets | 10 +- ets2panda/test/ast/parser/ets/enum.ets | 2 +- ets2panda/test/ast/parser/ets/enum11.ets | 6 +- ets2panda/test/ast/parser/ets/enum12.ets | 2 +- ets2panda/test/ast/parser/ets/enum13.ets | 2 +- ets2panda/test/ast/parser/ets/enum14.ets | 2 +- ets2panda/test/ast/parser/ets/enum16.ets | 10 +- ets2panda/test/ast/parser/ets/enum17.ets | 2 +- ets2panda/test/ast/parser/ets/enum18.ets | 4 +- ets2panda/test/ast/parser/ets/enum2.ets | 8 +- ets2panda/test/ast/parser/ets/enum20.ets | 8 +- ets2panda/test/ast/parser/ets/enum22.ets | 2 +- ets2panda/test/ast/parser/ets/enum23.ets | 2 +- ets2panda/test/ast/parser/ets/enum24.ets | 2 +- ets2panda/test/ast/parser/ets/enum26.ets | 6 +- ets2panda/test/ast/parser/ets/enum27.ets | 4 +- ets2panda/test/ast/parser/ets/enum29.ets | 4 +- ets2panda/test/ast/parser/ets/enum31.ets | 4 +- ets2panda/test/ast/parser/ets/enum32.ets | 8 +- ets2panda/test/ast/parser/ets/enum34.ets | 2 +- ets2panda/test/ast/parser/ets/enum5.ets | 6 +- ets2panda/test/ast/parser/ets/enum6.ets | 2 +- ets2panda/test/ast/parser/ets/enum7.ets | 2 +- ets2panda/test/ast/parser/ets/enum8.ets | 2 +- .../test/ast/parser/ets/enumAnnotation3.ets | 2 +- .../test/ast/parser/ets/enumAnnotation4.ets | 2 +- .../test/ast/parser/ets/enumAnnotation5.ets | 4 +- .../test/ast/parser/ets/enumAnnotation6.ets | 2 +- .../ets/enum_default_invalid_value_type.ets | 6 +- .../ast/parser/ets/enum_default_negative.ets | 18 +- .../ets/enum_multi_error/enum_empty.ets | 7 +- .../enum_not_pair_brackets.ets | 3 +- .../enum_multi_error/enum_with_identifier.ets | 5 +- .../ets_never_type_without_affect_other.ets | 4 +- .../ast/parser/ets/export_after_statement.ets | 4 +- ets2panda/test/ast/parser/ets/export_as.ets | 6 +- .../test/ast/parser/ets/export_assignment.ets | 8 +- .../ets/export_default_multiple_specifier.ets | 2 +- .../extension_function_error1.ets | 7 +- .../extension_function_error2.ets | 16 +- .../extension_function_not_in_toplevel.ets | 6 +- ets2panda/test/ast/parser/ets/fields.ets | 2 +- .../ast/parser/ets/forOfCustomIterator1.ets | 6 +- .../ast/parser/ets/forOfCustomIterator2.ets | 6 +- ets2panda/test/ast/parser/ets/forOfType.ets | 2 +- .../test/ast/parser/ets/for_await_of_loop.ets | 10 +- ets2panda/test/ast/parser/ets/for_in.ets | 5 +- ets2panda/test/ast/parser/ets/for_of_03.ets | 4 +- ets2panda/test/ast/parser/ets/for_of_04.ets | 22 +- .../ast/parser/ets/for_with_empty_body.ets | 2 +- .../ast/parser/ets/functionTypeParam_neg.ets | 2 +- .../ast/parser/ets/functionTypeParam_neg2.ets | 32 +- .../ast/parser/ets/functionTypeRethrows.ets | 4 +- .../ets/functionTypeWithDefaultParam1.ets | 2 +- .../ets/functionTypeWithDefaultParam2.ets | 2 +- .../test/ast/parser/ets/function_decl.ets | 2 +- .../ets/function_implicit_return_type.ets | 6 +- .../ets/function_implicit_return_type2.ets | 2 +- .../ets/function_implicit_return_type3.ets | 2 +- .../ets/function_implicit_return_type4.ets | 4 +- .../ast/parser/ets/generator_function.ets | 2 +- .../ast/parser/ets/genericDefaultParam_2.ets | 2 +- .../ast/parser/ets/genericDefaultParam_4.ets | 4 +- .../ets/generic_defined_before_use_neg_1.ets | 2 +- .../ets/generic_defined_before_use_neg_2.ets | 2 +- .../ets/generic_defined_before_use_neg_3.ets | 2 +- .../ets/generic_defined_before_use_neg_4.ets | 2 +- .../ets/generic_defined_before_use_neg_5.ets | 2 +- .../ets/generic_defined_before_use_neg_6.ets | 2 +- .../test/ast/parser/ets/generic_error.ets | 2 +- .../ast/parser/ets/generic_lambda_err1.ets | 28 + .../ast/parser/ets/generic_lambda_err2.ets | 39 + .../ast/parser/ets/generic_lambda_err3.ets | 47 + .../ets/generic_type_alias_clone_fix.ets | 6 +- .../ets/generics_type_param_constraint_8.ets | 2 +- ...rics_type_param_no_typeargs_no_default.ets | 6 +- ...cs_type_param_no_typeargs_no_default_2.ets | 4 +- .../ast/parser/ets/get_unexpected_void.ets | 4 +- .../ast/parser/ets/getterOverrideGen_n.ets | 2 +- .../test/ast/parser/ets/getter_native.ets | 2 +- .../ast/parser/ets/getter_not_abstract.ets | 6 +- .../ets/getter_setter_access_modifiers_2.ets | 8 +- .../parser/ets/getter_setter_endless_loop.ets | 4 +- .../ets/getter_setter_modifier_diff.ets | 2 +- .../ets/getter_setter_modifier_limited.ets | 2 +- .../ast/parser/ets/global_const_vars1.ets | 2 +- .../ast/parser/ets/global_const_vars2.ets | 2 +- .../ast/parser/ets/global_const_vars4.ets | 2 +- .../parser/ets/illegal_break_statement.ets | 10 +- .../parser/ets/illegal_continue_statement.ets | 18 +- .../parser/ets/illegal_line_after_throw.ets | 4 +- .../test/ast/parser/ets/import_assertion.ets | 8 +- .../ets/import_no_empty_binding_list.ets | 6 +- .../ast/parser/ets/import_no_side_effect.ets | 2 +- .../test/ast/parser/ets/import_require.ets | 8 +- .../ets/import_tests/Import_error_token_1.ets | 10 +- .../ets/import_tests/check_exported_1.ets | 2 +- .../ets/import_tests/default_import2.ets | 2 +- .../ets/import_tests/default_import3.ets | 10 +- .../ets/import_tests/export_no_comma.ets | 4 +- .../import_tests/export_trailing_comma.ets | 2 +- .../import_alias/import_alias_2.ets | 2 +- .../import_alias/import_alias_3.ets | 2 +- .../import_alias/import_alias_4.ets | 2 +- .../parser/ets/import_tests/import_all_2.ets | 2 +- .../ets/import_tests/import_all_alias_2.ets | 4 +- .../ets/import_tests/import_all_alias_neg.ets | 4 +- .../ets/import_tests/import_folder_n.ets | 2 +- .../parser/ets/import_tests/import_name_2.ets | 3 +- .../parser/ets/import_tests/import_name_3.ets | 2 +- .../ets/import_tests/import_name_alias_2.ets | 4 +- .../import_tests/import_name_conflict_1.ets | 2 +- .../import_tests/import_name_conflict_10.ets | 2 +- .../import_tests/import_name_conflict_11.ets | 2 +- .../import_tests/import_name_conflict_12.ets | 2 +- .../import_tests/import_name_conflict_2.ets | 2 +- .../import_tests/import_name_conflict_4.ets | 2 +- .../import_tests/import_name_conflict_5.ets | 2 +- .../import_tests/import_name_conflict_6.ets | 2 +- .../import_tests/import_name_conflict_7.ets | 2 +- .../import_tests/import_name_conflict_8.ets | 2 +- .../import_tests/import_name_conflict_9.ets | 2 +- .../import_name_conflicts/main_1.ets | 2 +- .../import_name_conflicts/main_2.ets | 2 +- .../import_name_conflicts/main_3.ets | 2 +- .../import_name_conflicts/main_4.ets | 2 +- .../import_name_conflicts/main_5.ets | 2 +- .../import_name_conflicts/main_6.ets | 2 +- .../import_name_conflicts/main_7.ets | 2 +- .../import_name_conflicts/main_8.ets | 2 +- .../ets/import_tests/import_no_comma.ets | 12 +- .../import_type_error_in_class.ets | 2 +- .../import_type_error_top_level.ets | 2 +- .../default_export_invalid_syntax_3.ets | 2 +- .../default_export_invalid_syntax_4.ets | 2 +- .../modules/invalid_namespace_import.ets | 2 +- .../modules/invalid_namespace_import2.ets | 12 +- .../modules/too_many_default_exports.ets | 2 +- .../modules/too_many_default_exports_2.ets | 2 +- .../different-header/subpackage_module_1.ets | 3 +- .../different-header/subpackage_module_2.ets | 2 +- .../ets/import_tests/type/import_type_1.ets | 4 +- .../ets/import_tests/type/import_type_2.ets | 2 +- .../parser/ets/import_tests/type/type_3.ets | 2 +- .../import_decl_after_decl_n.ets | 2 +- .../import_decl_in_block_n.ets | 2 +- ...ment-on-nullish-type-undefined-invalid.ets | 6 +- .../increment-on-nullish-type-undefined.ets | 4 +- .../ets/index_not_support_such_type.ets | 18 +- .../parser/ets/index_signature_error_1.ets | 6 +- .../parser/ets/index_signature_error_2.ets | 6 +- .../ast/parser/ets/inheritance-cyclic.ets | 2 +- .../ast/parser/ets/instanceof_on_type.ets | 6 +- .../ets/instanceof_with_not_object_type.ets | 2 +- ...t_class_with_array_creation_expression.ets | 2 +- ...terface_with_array_creation_expression.ets | 2 +- .../ets/interface-override-function.ets | 2 +- ets2panda/test/ast/parser/ets/interface.ets | 2 +- .../test/ast/parser/ets/interfaceAbstract.ets | 2 +- .../parser/ets/interfaceExtendInterfaces1.ets | 2 +- .../parser/ets/interfaceExtendInterfaces2.ets | 6 +- .../ets/interfaceMethodNativeModifier.ets | 4 +- .../ets/interfaceMethodPrivatePrivate.ets | 6 +- .../interfaceMethodPrivateStaticModifier.ets | 8 +- .../ets/interfaceMethodReadonlyModifier.ets | 10 +- .../ets/interfaceMethodStaticModifier.ets | 4 +- .../ets/interface_ambient_call_signature.ets | 2 +- .../interface_ambient_call_signature_1.ets | 2 +- .../ets/interface_ambient_indexer_1.ets | 2 +- .../ets/interface_ambient_indexer_2.ets | 24 +- .../parser/ets/interface_ambient_iterable.ets | 2 +- .../parser/ets/interface_extends_class.ets | 2 +- .../parser/ets/interface_instantiation.ets | 2 +- ..._late_initialization_conflict_modifier.ets | 4 +- .../ets/interface_member_initialization.ets | 8 +- .../parser/ets/interface_parser_error_1.ets | 72 +- .../parser/ets/interface_parser_error_2.ets | 10 +- .../ets/interface_private_function_1.ets | 4 +- ...c_late_initialization_assignment_error.ets | 2 +- .../ets/interface_with_different_type.ets | 2 +- ets2panda/test/ast/parser/ets/interfaces2.ets | 2 +- ets2panda/test/ast/parser/ets/interfaces3.ets | 6 +- .../test/ast/parser/ets/invalidEnums.ets | 32 +- .../test/ast/parser/ets/invalidEnums1.ets | 8 +- .../test/ast/parser/ets/invalidTypes.ets | 74 +- .../ast/parser/ets/invalid_access_static.ets | 2 +- .../ast/parser/ets/invalid_access_static2.ets | 2 +- .../parser/ets/invalid_decorator_usage.ets | 36 +- .../parser/ets/invalid_destructing_target.ets | 4 +- .../parser/ets/invalid_lambda_parameter.ets | 4 +- .../parser/ets/invalid_object_expression.ets | 16 +- .../ast/parser/ets/invalid_object_literal.ets | 6 +- .../parser/ets/invalid_punctuator_format.ets | 10 +- .../invalid_recursive_generic_union_type.ets | 10 +- .../test/ast/parser/ets/invalid_type.ets | 6 +- .../parser/ets/invalid_type_assignment.ets | 4 +- .../test/ast/parser/ets/keyof_annotation.ets | 12 +- .../ast/parser/ets/keyof_applied_to_other.ets | 11 +- .../test/ast/parser/ets/keyof_array_tuple.ets | 16 +- .../test/ast/parser/ets/keyof_constraint.ets | 6 +- ets2panda/test/ast/parser/ets/keyof_never.ets | 6 +- .../test/ast/parser/ets/keyof_parameter.ets | 12 +- .../ast/parser/ets/keyof_predefined_type.ets | 4 +- .../ets/keyof_private_and_protected.ets | 16 +- .../test/ast/parser/ets/keyof_smartcast.ets | 8 +- .../ast/parser/ets/keyof_type_parameter.ets | 6 +- ets2panda/test/ast/parser/ets/keyof_union.ets | 12 +- .../ets/keyword_after_readonly_interface.ets | 16 +- ets2panda/test/ast/parser/ets/labeled.ets | 14 +- .../ast/parser/ets/labeledBlockStatement.ets | 2 +- .../parser/ets/lambda-arrow-after-braces.ets | 7 +- .../ets/lambda-type-inference-bad-arrow.ets | 9 +- .../parser/ets/lambda-type-inference-neg.ets | 2 +- .../lambda-type-inference-overloaded-1.ets | 6 +- .../ets/lambda_function_index_access_neg.ets | 32 +- .../parser/ets/lambda_infer_type_neg_1.ets | 4 +- .../parser/ets/lambda_infer_type_neg_2.ets | 2 +- .../lambda_n/lambda_n_too_many_arg_neg_1.ets | 4 +- .../lambda_n/lambda_n_too_many_arg_neg_2.ets | 4 +- .../lambda_n/lambda_n_too_many_arg_neg_3.ets | 4 +- .../lambda_n/lambda_n_too_many_arg_neg_4.ets | 4 +- .../lambda_n/lambda_n_too_many_arg_neg_5.ets | 4 +- ...ambda_omit_parentheses_parameter_neg_1.ets | 6 +- ...ambda_omit_parentheses_parameter_neg_3.ets | 2 +- ...mbda_omit_parentheses_type_alias_neg_1.ets | 4 +- .../parser/ets/lambda_optional_param_2.ets | 2 +- .../parser/ets/lambda_optional_param_3.ets | 4 +- ets2panda/test/ast/parser/ets/lexer003.ets | 16 +- .../parser/ets/lexical_dec_not_allowed.ets | 6 +- .../local-class-access-modifier-private.ets | 2 +- .../local-class-access-modifier-protected.ets | 2 +- .../local-class-access-modifier-public.ets | 2 +- ...-class-member-access-modifier-private1.ets | 4 +- ...-class-member-access-modifier-private2.ets | 4 +- ...lass-member-access-modifier-protected1.ets | 4 +- ...lass-member-access-modifier-protected2.ets | 4 +- ...l-class-member-access-modifier-public1.ets | 4 +- ...l-class-member-access-modifier-public2.ets | 4 +- ets2panda/test/ast/parser/ets/local-enum.ets | 2 +- ...ocal-interface-access-modifier-private.ets | 2 +- ...al-interface-access-modifier-protected.ets | 2 +- ...local-interface-access-modifier-public.ets | 2 +- ...erface-member-access-modifier-private1.ets | 4 +- ...erface-member-access-modifier-private2.ets | 6 +- ...face-member-access-modifier-protected1.ets | 4 +- .../test/ast/parser/ets/localTypeAlias_n.ets | 4 +- .../parser/ets/local_class_already_class.ets | 4 +- .../ets/local_class_already_interface.ets | 4 +- .../ets/local_class_already_variable.ets | 2 +- .../ets/local_class_in_classfunction.ets | 20 +- ets2panda/test/ast/parser/ets/local_enum.ets | 16 +- .../test/ast/parser/ets/local_interface.ets | 14 +- .../ets/local_interface_already_class.ets | 4 +- .../ets/local_interface_already_interface.ets | 4 +- .../ets/local_interface_already_variable..ets | 2 +- .../test/ast/parser/ets/local_type_alias.ets | 16 +- ets2panda/test/ast/parser/ets/loops.ets | 2 +- .../ast/parser/ets/main_entry_point_2.ets | 2 +- .../ast/parser/ets/main_entry_point_3.ets | 2 +- .../ast/parser/ets/main_entry_point_4.ets | 2 +- .../ast/parser/ets/main_entry_point_5.ets | 4 +- ets2panda/test/ast/parser/ets/method_full.ets | 10 +- .../parser/ets/method_modifier_check_1.ets | 4 +- .../parser/ets/method_modifier_check_10.ets | 4 +- .../parser/ets/method_modifier_check_11.ets | 2 +- .../parser/ets/method_modifier_check_12.ets | 2 +- .../parser/ets/method_modifier_check_13.ets | 2 +- .../parser/ets/method_modifier_check_15.ets | 4 +- .../parser/ets/method_modifier_check_16.ets | 2 +- .../parser/ets/method_modifier_check_17.ets | 2 +- .../parser/ets/method_modifier_check_2.ets | 4 +- .../parser/ets/method_modifier_check_3.ets | 4 +- .../parser/ets/method_modifier_check_4.ets | 4 +- .../parser/ets/method_modifier_check_5.ets | 4 +- .../parser/ets/method_modifier_check_6.ets | 4 +- .../parser/ets/method_modifier_check_7.ets | 2 +- .../parser/ets/method_modifier_check_9.ets | 2 +- ets2panda/test/ast/parser/ets/methods.ets | 2 +- .../ast/parser/ets/minus_sign_as_index_1.ets | 14 +- .../parser/ets/missing_implementation_1.ets | 2 +- .../parser/ets/missing_implementation_2.ets | 2 +- .../parser/ets/missing_in_for_statement_1.ets | 14 +- .../parser/ets/missing_in_for_statement_2.ets | 14 +- .../parser/ets/missing_in_if_statement_1.ets | 2 +- .../parser/ets/missing_in_if_statement_2.ets | 4 +- .../test/ast/parser/ets/multiple_fields.ets | 2 +- .../parser/ets/n_arrayHoldingNullValue.ets | 4 +- ...ssignNullableFromFunctionToNonNullable.ets | 2 +- .../parser/ets/n_nullableTypeMissingNull.ets | 2 +- .../parser/ets/n_returnNullFromFunction.ets | 2 +- .../ast/parser/ets/n_returnNullFromMethod.ets | 2 +- ets2panda/test/ast/parser/ets/named_types.ets | 12 +- .../test/ast/parser/ets/named_types_1.ets | 2 +- .../ast/parser/ets/namespace_bad_token.ets | 4 +- .../ast/parser/ets/namespace_badtoken01.ets | 2 +- .../ast/parser/ets/namespace_badtoken02.ets | 2 +- .../ast/parser/ets/namespace_badtoken03.ets | 2 +- .../ast/parser/ets/namespace_badtoken04.ets | 4 +- .../ets/native_constructor_empty_body.ets | 6 +- .../ets/native_constructor_non_empty_body.ets | 4 +- .../native_function_without_return_type.ets | 2 +- .../test/ast/parser/ets/nested_function.ets | 4 +- .../test/ast/parser/ets/nested_function_1.ets | 4 +- .../parser/ets/nested_function_in_method.ets | 4 +- .../ast/parser/ets/new_object_undefined.ets | 4 +- .../ast/parser/ets/no-call-signatures.ets | 15 +- .../parser/ets/no-constructor-signatures.ets | 4 +- .../test/ast/parser/ets/no-generic-lambda.ets | 5 +- .../test/ast/parser/ets/no_prototype.ets | 22 +- ets2panda/test/ast/parser/ets/nolint_bad.ets | 6 +- .../parser/ets/non-ambient_call_signature.ets | 2 +- .../ast/parser/ets/nonPublicInterfaceProp.ets | 2 +- .../parser/ets/non_constant_expression.ets | 2 +- .../parser/ets/non_proper_index_method.ets | 18 +- .../parser/ets/non_proper_iterator_method.ets | 4 +- .../ast/parser/ets/null-coalesc-negative.ets | 4 +- .../test/ast/parser/ets/null_invalid.ets | 2 +- .../parser/ets/object_literal_dup_keys_0.ets | 2 +- .../parser/ets/object_literal_dup_keys_2.ets | 2 +- .../parser/ets/object_literal_withfunc.ets | 12 +- .../parser/ets/operator_logical_and_euqal.ets | 2 +- .../ets/operator_logical_nullish_equal.ets | 2 +- .../parser/ets/operator_logical_or_equal.ets | 2 +- .../parser/ets/optional-chaining-array.ets | 2 +- .../optional_chaining_invalid_property.ets | 2 +- .../test/ast/parser/ets/optional_field.ets | 4 +- ...onal_field_interfaceUnionNotCompatible.ets | 4 +- .../parser/ets/optional_field_variable.ets | 4 +- .../ets/optional_field_variable_forof.ets | 2 +- .../ets/overloaded_method_as_value_neg.ets | 24 +- .../parser/ets/overrideFuncWithGetter_n.ets | 6 +- .../test/ast/parser/ets/override_method.ets | 6 +- .../parser/ets/partialGenericInterface_2.ets | 4 +- .../ast/parser/ets/partialInterface_n0.ets | 4 +- .../ast/parser/ets/partialInterface_n1.ets | 4 +- .../test/ast/parser/ets/partialType_4.ets | 2 +- .../test/ast/parser/ets/partial_interface.ets | 6 +- .../ets/predefined_non_primitive_types.ets | 8 +- .../ets/privateSuperConstructorCall.ets | 4 +- .../parser/ets/property-access-field-1.ets | 2 +- .../parser/ets/property-access-field-2.ets | 2 +- .../parser/ets/property-access-method-1.ets | 2 +- .../parser/ets/property-access-method-2.ets | 2 +- .../ast/parser/ets/re_export/import_16.ets | 2 +- .../ast/parser/ets/re_export/import_17.ets | 2 +- .../ast/parser/ets/re_export/import_20.ets | 2 +- .../ast/parser/ets/re_export/import_5.ets | 2 +- .../ast/parser/ets/re_export/re_export_4.ets | 2 +- .../ets/re_export/re_export_circular.ets | 2 +- .../ets/readonly-array/readonly-array-arg.ets | 28 +- .../readonly-array/readonly-array-field.ets | 28 +- .../ets/readonly-array/readonly-array-var.ets | 28 +- .../Readonly-Array-test1.ets | 2 +- .../Readonly-Array-test2.ets | 2 +- .../Readonly-Array-test3.ets | 4 +- .../Readonly-with-ArrayType-test1.ets | 4 +- .../Readonly-with-ArrayType-test2.ets | 6 +- .../Readonly-with-ArrayType-test3.ets | 2 +- .../Readonly-with-ArrayType-test4.ets | 2 +- .../readonly-parameter-and-Readonly-test1.ets | 2 +- .../readonly-parameter-and-Readonly-test2.ets | 20 +- .../readonly-parameter-test1.ets | 2 +- .../readonly-parameter-test2.ets | 2 +- .../readonly-parameter-test3.ets | 2 +- .../readonly-parameter-test4.ets | 4 +- .../readonly-parameter-test5.ets | 6 +- .../readonly-parameter-test6.ets | 4 +- .../ets/readonlyFunctionTypeAnnotation.ets | 18 +- .../ets/readonlyGetterSetterReassignment1.ets | 2 +- .../ets/readonlyGetterSetterReassignment2.ets | 2 +- .../parser/ets/readonly_interface_method.ets | 4 +- .../readonly_reference_CTE_err_elimilate.ets | 4 +- .../parser/ets/readonly_union_negative.ets | 32 +- .../test/ast/parser/ets/recordIndexing.ets | 22 +- .../ast/parser/ets/recordKeyTypeCheck01.ets | 2 +- .../ast/parser/ets/recordKeyTypeCheck02.ets | 2 +- .../ast/parser/ets/recordKeyTypeCheck03.ets | 2 +- .../ast/parser/ets/recordKeyTypeCheck04.ets | 2 +- .../test/ast/parser/ets/record_dup_key_01.ets | 2 +- .../test/ast/parser/ets/record_dup_key_02.ets | 2 +- .../test/ast/parser/ets/record_init_check.ets | 2 +- .../ast/parser/ets/record_object_value.ets | 8 +- .../ets/recursive_clousre_reference_error.ets | 4 +- .../ets/recursive_exported_structure.ets | 24 +- .../parser/ets/required_multiple_fields.ets | 12 +- .../parser/ets/required_multiple_fields_2.ets | 4 +- .../test/ast/parser/ets/reserved_type.ets | 18 +- ets2panda/test/ast/parser/ets/rest_never.ets | 4 +- .../test/ast/parser/ets/rest_no_default.ets | 4 +- .../test/ast/parser/ets/rest_no_optional.ets | 2 +- .../test/ast/parser/ets/rest_parameter_04.ets | 8 +- .../test/ast/parser/ets/rest_parameter_05.ets | 4 +- .../test/ast/parser/ets/rest_parameter_06.ets | 4 +- .../test/ast/parser/ets/rest_parameter_07.ets | 4 +- .../test/ast/parser/ets/rest_parameter_08.ets | 18 +- .../test/ast/parser/ets/rest_parameter_09.ets | 4 +- .../test/ast/parser/ets/rest_parameter_10.ets | 4 +- .../test/ast/parser/ets/rest_parameter_11.ets | 4 +- .../test/ast/parser/ets/rest_parameter_12.ets | 12 +- .../test/ast/parser/ets/rest_parameter_13.ets | 22 +- .../test/ast/parser/ets/rest_parameter_14.ets | 4 +- .../ets/return_null_and_type_not_match.ets | 4 +- .../ast/parser/ets/return_type_non_match.ets | 4 +- .../ast/parser/ets/return_while_warning.ets | 2 +- .../parser/ets/returntype_override_object.ets | 4 +- .../parser/ets/segmentation_fault_test1.ets | 2 +- .../selective_export/selective_export_bad.ets | 2 +- .../ast/parser/ets/set_unexpected_nonvoid.ets | 4 +- .../test/ast/parser/ets/setter_native.ets | 2 +- ...er_with_more_than_one_formal_parameter.ets | 4 +- .../ast/parser/ets/setter_with_non_void.ets | 2 +- .../parser/ets/setter_with_return_type.ets | 2 +- .../ets/single_export/single_export_as_n.ets | 6 +- .../single_export_expression.ets | 2 +- .../single_export/single_export_from_n.ets | 8 +- .../single_export/single_export_lambda.ets | 2 +- .../ets/single_export/single_export_n.ets | 4 +- .../ast/parser/ets/single_statement_1.ets | 22 +- .../ast/parser/ets/single_statement_2.ets | 22 +- .../ast/parser/ets/special_signatures.ets | 6 +- .../ast/parser/ets/spreadArrayInTuple.ets | 8 +- .../ets/spreadExpressionNotArrayType.ets | 2 +- .../ets/spread_parameter_only_with_rest_1.ets | 5 +- .../ets/spread_parameter_only_with_rest_2.ets | 9 +- .../ets/spread_parameter_only_with_rest_3.ets | 9 +- .../ets/spreadexpr_in_newexpr_neg01.ets | 18 +- .../ets/spreadexpr_in_newexpr_neg02.ets | 2 +- .../test/ast/parser/ets/static_block.ets | 4 +- .../test/ast/parser/ets/static_field_1.ets | 2 +- .../test/ast/parser/ets/static_field_2.ets | 2 +- .../test/ast/parser/ets/static_field_3.ets | 2 +- .../test/ast/parser/ets/static_field_4.ets | 4 +- .../test/ast/parser/ets/static_field_5.ets | 2 +- .../ast/parser/ets/static_func_call_1.ets | 2 +- .../ast/parser/ets/static_func_call_10.ets | 2 +- .../ast/parser/ets/static_func_call_2.ets | 2 +- .../ast/parser/ets/static_func_call_3.ets | 2 +- .../ast/parser/ets/static_func_call_4.ets | 2 +- .../ast/parser/ets/static_func_call_5.ets | 2 +- .../ast/parser/ets/static_func_call_6.ets | 2 +- .../ast/parser/ets/static_func_call_7.ets | 2 +- .../ast/parser/ets/static_func_call_8.ets | 2 +- .../ast/parser/ets/static_func_call_9.ets | 4 +- .../parser/ets/static_function_override_4.ets | 2 +- .../static_invoke_coexist_invoke_method.ets | 2 +- .../static_invoke_coexist_invoke_method_1.ets | 2 +- .../static_invoke_mismatch_signature.ets | 4 +- .../static_invoke_mismatch_signature_1.ets | 4 +- .../static_invoke_mismatch_signature_2.ets | 4 +- .../test/ast/parser/ets/string_literal_01.ets | 6 +- .../parser/ets/string_literal_const_cast.ets | 10 +- .../test/ast/parser/ets/struct_export1.ets | 2 +- .../ast/parser/ets/struct_extends_class.ets | 2 +- .../parser/ets/struct_extends_interface.ets | 4 +- .../ast/parser/ets/struct_extends_struct.ets | 6 +- .../ets/struct_implements_interface.ets | 2 +- .../test/ast/parser/ets/struct_in_class.ets | 4 +- .../ast/parser/ets/struct_in_interface.ets | 22 +- .../test/ast/parser/ets/struct_in_struct.ets | 6 +- .../parser/ets/struct_invalid_abstract.ets | 2 +- .../ast/parser/ets/struct_invalid_local.ets | 2 +- .../ast/parser/ets/struct_invalid_nested2.ets | 4 +- .../test/ast/parser/ets/struct_keywords1.ets | 2 +- .../test/ast/parser/ets/struct_keywords2.ets | 2 +- .../test/ast/parser/ets/struct_keywords3.ets | 4 +- .../parser/ets/struct_with_annotations.ets | 2 +- .../ets/struct_with_component_annotation.ets | 4 +- .../ast/parser/ets/superInConstructor1.ets | 2 +- .../ast/parser/ets/superInConstructor2.ets | 2 +- .../ast/parser/ets/superInConstructor3.ets | 2 +- .../test/ast/parser/ets/superStaticCall.ets | 2 +- ets2panda/test/ast/parser/ets/super_field.ets | 2 +- .../test/ast/parser/ets/switch_alive_2.ets | 2 +- .../test/ast/parser/ets/switch_alive_3.ets | 2 +- ...witch_const_int_compare_char_duplicate.ets | 2 +- ets2panda/test/ast/parser/ets/switch_enum.ets | 2 +- .../test/ast/parser/ets/switch_enum2.ets | 2 +- .../parser/ets/switch_enum_case_duplicate.ets | 2 +- .../ets/switch_enum_string_case_duplicate.ets | 2 +- .../test/ast/parser/ets/switch_invalid.ets | 98 +- .../switch_readonly_member_different_enum.ets | 4 +- .../switch_readonly_member_enum_duplicate.ets | 2 +- ...witch_readonly_member_number_duplicate.ets | 2 +- .../test/ast/parser/ets/swtich_not_const.ets | 2 +- .../test/ast/parser/ets/test_type_alias1.ets | 8 +- .../test/ast/parser/ets/test_type_alias10.ets | 2 +- .../test/ast/parser/ets/test_type_alias2.ets | 2 +- .../test/ast/parser/ets/test_type_alias3.ets | 2 +- .../test/ast/parser/ets/test_type_alias4.ets | 2 +- .../test/ast/parser/ets/thisInConstructor.ets | 2 +- .../ets/this_type_class_field_invalid.ets | 2 +- ...is_type_class_method_parameter_invalid.ets | 2 +- ..._class_static_method_parameter_invalid.ets | 2 +- ...ype_class_static_method_return_invalid.ets | 4 +- .../this_type_function_parameter_invalid.ets | 2 +- .../ets/this_type_function_return_invalid.ets | 6 +- .../ets/this_type_instanceof_invalid.ets | 22 +- ...declaration_parameter_in_class_invalid.ets | 2 +- ...e_lambda_declaration_parameter_invalid.ets | 2 +- ...da_declaration_return_in_class_invalid.ets | 2 +- ...type_lambda_declaration_return_invalid.ets | 2 +- ..._definition_parameter_in_class_invalid.ets | 2 +- ...bda_definition_return_in_class_invalid.ets | 2 +- .../ast/parser/ets/too_many_expression.ets | 4 +- .../ast/parser/ets/topLevelStaticClass.ets | 2 +- .../test/ast/parser/ets/trailing_comma_1.ets | 64 +- .../test/ast/parser/ets/trailing_comma_2.ets | 10 +- .../double_trailing_lambda_1.ets | 2 +- .../empty_vs_nonempty_lambda.ets | 4 +- .../extra_trailing_lambda_1.ets | 6 +- .../extra_trailing_lambda_2.ets | 2 +- ...ing_lambda_mismatch_lambda_signature_1.ets | 2 +- ...ing_lambda_mismatch_lambda_signature_2.ets | 2 +- ..._lambda_not_transform_trailing_block_1.ets | 2 +- ...lambda_not_transform_trailing_block_10.ets | 2 +- ..._lambda_not_transform_trailing_block_2.ets | 4 +- ..._lambda_not_transform_trailing_block_3.ets | 6 +- ..._lambda_not_transform_trailing_block_4.ets | 6 +- ..._lambda_not_transform_trailing_block_5.ets | 6 +- ..._lambda_not_transform_trailing_block_6.ets | 2 +- ..._lambda_not_transform_trailing_block_8.ets | 2 +- ..._lambda_not_transform_trailing_block_9.ets | 2 +- .../trailing_lambda_omit_call_parentheses.ets | 2 +- .../test/ast/parser/ets/tryBlockOnly.ets | 2 +- .../test/ast/parser/ets/try_catch_alive_1.ets | 2 +- .../test/ast/parser/ets/try_catch_alive_2.ets | 2 +- .../test/ast/parser/ets/try_catch_alive_3.ets | 2 +- .../test/ast/parser/ets/try_catch_alive_4.ets | 2 +- .../test/ast/parser/ets/try_catch_alive_5.ets | 2 +- .../test/ast/parser/ets/try_catch_alive_6.ets | 4 +- .../test/ast/parser/ets/try_catch_alive_7.ets | 2 +- .../test/ast/parser/ets/try_catch_alive_8.ets | 4 +- .../test/ast/parser/ets/try_catch_alive_9.ets | 4 +- .../test/ast/parser/ets/ts-type-assertion.ets | 12 +- .../ast/parser/ets/tupleIndexWithLargeInt.ets | 2 +- .../ast/parser/ets/tuple_trailing_comma.ets | 22 +- .../test/ast/parser/ets/tuple_type_2_neg.ets | 16 +- .../test/ast/parser/ets/tuple_type_3_neg.ets | 8 +- .../test/ast/parser/ets/tuple_type_4_neg.ets | 16 +- .../parser/ets/type_alias_invalid_name.ets | 2 +- .../parser/ets/type_argument_conversion.ets | 10 +- ets2panda/test/ast/parser/ets/type_from_1.ets | 4 +- .../test/ast/parser/ets/type_from_generic.ets | 2 +- .../ets/type_from_never_literal_keyof.ets | 4 +- .../ast/parser/ets/type_from_union_tuple.ets | 6 +- .../ast/parser/ets/type_from_utility_type.ets | 10 +- .../ets/type_node_clone_assertion_fix.ets | 6 +- .../ets/type_param_contraint_override.ets | 4 +- .../test/ast/parser/ets/type_references.ets | 6 +- .../test/ast/parser/ets/type_variance2.ets | 2 +- .../test/ast/parser/ets/type_variance3.ets | 2 +- .../test/ast/parser/ets/type_variance4.ets | 2 +- .../ets/typeinference_function_generic.ets | 2 +- .../parser/ets/typenode_clone_brokentype.ets | 28 +- .../ets/typenode_clone_comprehensive.ets | 56 +- .../parser/ets/typenode_clone_primitives.ets | 24 +- .../ast/parser/ets/typeof_in_annotation.ets | 8 +- ...ypeparameter_constraint_circular-neg_0.ets | 2 +- ...ypeparameter_constraint_circular-neg_1.ets | 2 +- ets2panda/test/ast/parser/ets/types_decls.ets | 16 +- .../ets/types_no_object_lit_to_decl.ets | 4 +- .../ets/types_no_object_lit_to_decl_2.ets | 3 +- .../test/ast/parser/ets/unclosed_loop.ets | 8 +- .../ast/parser/ets/undefinedNullNotObject.ets | 2 +- .../ast/parser/ets/unexpected_token_1.ets | 6 +- .../ast/parser/ets/unexpected_token_10.ets | 8 +- .../ast/parser/ets/unexpected_token_11.ets | 2 +- .../ast/parser/ets/unexpected_token_12.ets | 10 +- .../ast/parser/ets/unexpected_token_13.ets | 4 +- .../ast/parser/ets/unexpected_token_14.ets | 12 +- .../ast/parser/ets/unexpected_token_15.ets | 4 +- .../ast/parser/ets/unexpected_token_18.ets | 2 +- .../ast/parser/ets/unexpected_token_19.ets | 4 +- .../ast/parser/ets/unexpected_token_2.ets | 6 +- .../ast/parser/ets/unexpected_token_20.ets | 2 +- .../ast/parser/ets/unexpected_token_21.ets | 6 +- .../ast/parser/ets/unexpected_token_22.ets | 8 +- .../ast/parser/ets/unexpected_token_23.ets | 2 +- .../ast/parser/ets/unexpected_token_24.ets | 6 +- .../ast/parser/ets/unexpected_token_25.ets | 18 +- .../ast/parser/ets/unexpected_token_26.ets | 2 +- .../ast/parser/ets/unexpected_token_27.ets | 4 +- .../ast/parser/ets/unexpected_token_28.ets | 16 +- .../ast/parser/ets/unexpected_token_29.ets | 16 +- .../ast/parser/ets/unexpected_token_3.ets | 8 +- .../ast/parser/ets/unexpected_token_30.ets | 6 +- .../ast/parser/ets/unexpected_token_31.ets | 26 +- .../ast/parser/ets/unexpected_token_32.ets | 7 +- .../ast/parser/ets/unexpected_token_33.ets | 14 +- .../ast/parser/ets/unexpected_token_35.ets | 12 +- .../ast/parser/ets/unexpected_token_36.ets | 18 +- .../ast/parser/ets/unexpected_token_37.ets | 18 +- .../ast/parser/ets/unexpected_token_38.ets | 12 +- .../ast/parser/ets/unexpected_token_39.ets | 2 +- .../ast/parser/ets/unexpected_token_4.ets | 6 +- .../ast/parser/ets/unexpected_token_40.ets | 6 +- .../ast/parser/ets/unexpected_token_41.ets | 10 +- .../ast/parser/ets/unexpected_token_42.ets | 4 +- .../ast/parser/ets/unexpected_token_43.ets | 12 +- .../ast/parser/ets/unexpected_token_44.ets | 2 +- .../ast/parser/ets/unexpected_token_45.ets | 3 +- .../ast/parser/ets/unexpected_token_46.ets | 8 +- .../ast/parser/ets/unexpected_token_47.ets | 8 +- .../ast/parser/ets/unexpected_token_48.ets | 6 +- .../ast/parser/ets/unexpected_token_49.ets | 10 +- .../ast/parser/ets/unexpected_token_5.ets | 8 +- .../ast/parser/ets/unexpected_token_50.ets | 10 +- .../ast/parser/ets/unexpected_token_52.ets | 26 +- .../ast/parser/ets/unexpected_token_53.ets | 28 +- .../ast/parser/ets/unexpected_token_55.ets | 30 +- .../ast/parser/ets/unexpected_token_56.ets | 26 +- .../ast/parser/ets/unexpected_token_57.ets | 3 +- .../ast/parser/ets/unexpected_token_58.ets | 3 +- .../ast/parser/ets/unexpected_token_59.ets | 3 +- .../ast/parser/ets/unexpected_token_6.ets | 2 +- .../ast/parser/ets/unexpected_token_60.ets | 2 +- .../ast/parser/ets/unexpected_token_61.ets | 4 +- .../ast/parser/ets/unexpected_token_63.ets | 67 +- .../ast/parser/ets/unexpected_token_7.ets | 2 +- .../ast/parser/ets/unexpected_token_8.ets | 2 +- .../ast/parser/ets/unexpected_token_9.ets | 4 +- .../ast/parser/ets/union_static_method.ets | 2 +- .../ast/parser/ets/unreachable_fuzz_error.ets | 18 +- .../ast/parser/ets/update_funcscope_error.ets | 30 +- .../test/ast/parser/ets/user_defined_10.ets | 4 +- .../test/ast/parser/ets/user_defined_11.ets | 2 +- .../test/ast/parser/ets/user_defined_12.ets | 2 +- .../test/ast/parser/ets/user_defined_13.ets | 2 +- .../test/ast/parser/ets/user_defined_14.ets | 4 +- .../test/ast/parser/ets/user_defined_15.ets | 2 +- .../test/ast/parser/ets/user_defined_16.ets | 4 +- .../test/ast/parser/ets/user_defined_17.ets | 4 +- .../test/ast/parser/ets/user_defined_18.ets | 4 +- .../test/ast/parser/ets/user_defined_19.ets | 6 +- .../test/ast/parser/ets/user_defined_20.ets | 4 +- .../test/ast/parser/ets/user_defined_21.ets | 2 +- .../test/ast/parser/ets/user_defined_23.ets | 2 +- .../test/ast/parser/ets/user_defined_24.ets | 4 +- .../test/ast/parser/ets/user_defined_25.ets | 10 +- .../test/ast/parser/ets/user_defined_5.ets | 2 +- .../test/ast/parser/ets/user_defined_7.ets | 8 +- .../test/ast/parser/ets/user_defined_8.ets | 4 +- .../test/ast/parser/ets/user_defined_9.ets | 2 +- .../ast/parser/ets/visible_signatures_1.ets | 6 +- .../ast/parser/ets/while_with_empty_body.ets | 4 +- .../parser/ets/while_with_empty_condition.ets | 6 +- .../parser/ets/windows_multiline_comments.ets | 2 +- .../ets/wrong-union-array-assignment.ets | 2 +- .../parser/ets/wrongReadonlyUtilityType.ets | 4 +- .../ast/parser/ets/wrong_context_class_1.ets | 4 +- .../ast/parser/ets/wrong_context_class_2.ets | 4 +- .../ast/parser/ets/wrong_context_class_3.ets | 4 +- .../ast/parser/ets/wrong_context_class_4.ets | 4 +- .../parser/ets/wrong_context_function_1.ets | 4 +- .../parser/ets/wrong_context_function_2.ets | 2 +- .../parser/ets/wrong_context_function_3.ets | 4 +- .../parser/ets/wrong_context_function_4.ets | 4 +- .../test/ast/parser/js/InvalidParserImpl.js | 26 +- .../ast/parser/js/for_of_loop_variable.js | 2 +- ...alid-left-hand-side-in-prefix-operation.js | 3 +- .../ast/parser/js/module/import_meta_1.js | 8 +- .../ast/parser/js/module/import_meta_2.js | 11 +- .../parser/js/module/unexpected_token_10.js | 6 +- .../parser/js/module/unexpected_token_9.js | 6 +- .../test/ast/parser/js/new-expression.js | 2 +- .../test/ast/parser/js/private_ctor_bad.js | 3 +- .../test/ast/parser/js/private_number_bad.js | 5 +- .../test/ast/parser/js/private_ref_bad.js | 2 +- .../ast/parser/js/private_sqbracket_bad.js | 9 +- .../test/ast/parser/js/private_string_bad.js | 5 +- .../parser/js/static_property_prototype.js | 2 +- .../ast/parser/js/test-array-expression-1.js | 6 +- .../ast/parser/js/test-array-expression-2.js | 2 +- .../ast/parser/js/test-class-definition1.js | 2 +- .../ast/parser/js/test-class-definition2.js | 2 +- .../ast/parser/js/test-class-definition3.js | 2 +- .../ast/parser/js/test-class-definition4.js | 2 +- .../ast/parser/js/test-class-definition5.js | 2 +- .../ast/parser/js/test-class-static-block1.js | 4 +- .../ast/parser/js/test-class-static-block2.js | 2 +- .../ast/parser/js/test-class-static-block3.js | 2 +- .../ast/parser/js/test-class-static-block4.js | 2 +- .../ast/parser/js/test-class-static-block5.js | 2 +- .../ast/parser/js/test-class-static-block6.js | 2 +- .../ast/parser/js/test-const-without-init.js | 2 +- .../ast/parser/js/test-continue-in-switch.js | 2 +- .../ast/parser/js/test-delete-identifier.js | 2 +- .../test/ast/parser/js/test-do-while-1.js | 2 +- .../ast/parser/js/test-escaped-keyword.js | 2 +- .../test-expression-after-unary-expression.js | 2 +- ets2panda/test/ast/parser/js/test-for-1.js | 5 +- ets2panda/test/ast/parser/js/test-for-2.js | 4 +- ets2panda/test/ast/parser/js/test-for-3.js | 3 +- ets2panda/test/ast/parser/js/test-for-4.js | 2 +- .../js/test-function-scope-violation-1.js | 2 +- .../js/test-function-scope-violation-2.js | 2 +- ets2panda/test/ast/parser/js/test-if-1.js | 8 +- ets2panda/test/ast/parser/js/test-if-2.js | 4 +- .../test/ast/parser/js/test-import-decl.js | 4 +- .../test/ast/parser/js/test-imported-decl1.js | 2 +- .../ast/parser/js/test-labelled-statement1.js | 2 +- .../ast/parser/js/test-labelled-statement2.js | 4 +- .../ast/parser/js/test-let-redeclaration.js | 2 +- .../ast/parser/js/test-member-expression-1.js | 8 +- .../ast/parser/js/test-member-expression-2.js | 2 +- .../ast/parser/js/test-member-expression-3.js | 2 +- .../parser/js/test-missing-catch-argument.js | 2 +- .../ast/parser/js/test-multi-line-string.js | 4 +- .../js/test-multiple-update-expression.js | 2 +- .../ast/parser/js/test-nullish-coalescing1.js | 2 +- .../ast/parser/js/test-nullish-coalescing2.js | 2 +- .../ast/parser/js/test-numeric-separator1.js | 4 +- .../ast/parser/js/test-numeric-separator2.js | 2 +- .../ast/parser/js/test-object-expression1.js | 2 +- .../ast/parser/js/test-object-expression2.js | 8 +- .../ast/parser/js/test-object-expression3.js | 2 +- .../ast/parser/js/test-object-expression4.js | 2 +- .../ast/parser/js/test-object-expression5.js | 2 +- .../test/ast/parser/js/test-object-proto.js | 2 +- .../js/test-one-default-export-allowed.js | 8 +- .../test/ast/parser/js/test-optional-chain.js | 2 +- .../test/ast/parser/js/test-private-field1.js | 4 +- .../ast/parser/js/test-private-field10.js | 6 +- .../ast/parser/js/test-private-field11.js | 4 +- .../ast/parser/js/test-private-field12.js | 2 +- .../ast/parser/js/test-private-field13.js | 2 +- .../ast/parser/js/test-private-field14.js | 2 +- .../ast/parser/js/test-private-field15.js | 2 +- .../ast/parser/js/test-private-field16.js | 2 +- .../test/ast/parser/js/test-private-field2.js | 2 +- .../test/ast/parser/js/test-private-field3.js | 2 +- .../test/ast/parser/js/test-private-field4.js | 5 +- .../test/ast/parser/js/test-private-field5.js | 5 +- .../test/ast/parser/js/test-private-field6.js | 4 +- .../test/ast/parser/js/test-private-field7.js | 6 +- .../test/ast/parser/js/test-private-field8.js | 2 +- .../test/ast/parser/js/test-private-field9.js | 3 +- .../ast/parser/js/test-super-expression.js | 2 +- ets2panda/test/ast/parser/js/test-switch-1.js | 11 +- ets2panda/test/ast/parser/js/test-switch-2.js | 9 +- ets2panda/test/ast/parser/js/test-switch-3.js | 2 +- ets2panda/test/ast/parser/js/test-switch-4.js | 4 +- ets2panda/test/ast/parser/js/test-switch-5.js | 2 +- ets2panda/test/ast/parser/js/test-switch-6.js | 2 +- .../ast/parser/js/test-template-literal-1.js | 10 +- .../ast/parser/js/test-template-literal-2.js | 2 +- ...test-throw-statement-without-expression.js | 2 +- .../js/test-try-catch-lexical-declaration.js | 2 +- .../js/test-try-without-catch-and-finally.js | 3 +- .../test/ast/parser/js/test-use-strict-1.js | 2 +- .../test/ast/parser/js/test-use-strict-2.js | 4 +- .../parser/js/test-wrong-function-decl-1.js | 8 +- .../parser/js/test-wrong-function-decl-2.js | 7 +- .../parser/js/test-wrong-function-decl-3.js | 4 +- ets2panda/test/ast/parser/js/test_yield.js | 2 +- .../test/ast/parser/js/this-expression.js | 4 +- .../test/ast/parser/js/trailing_comma_1.js | 13 +- .../test/ast/parser/js/trailing_comma_2.js | 2 +- .../test/ast/parser/js/unexpected_token_1.js | 5 +- .../test/ast/parser/js/unexpected_token_10.js | 6 +- .../test/ast/parser/js/unexpected_token_2.js | 2 +- .../test/ast/parser/js/unexpected_token_3.js | 9 +- .../test/ast/parser/js/unexpected_token_4.js | 5 +- .../test/ast/parser/js/unexpected_token_5.js | 5 +- .../test/ast/parser/js/unexpected_token_6.js | 6 +- .../test/ast/parser/js/unexpected_token_7.js | 9 +- .../test/ast/parser/ts/InvalidExpressions.ts | 43 +- .../test/ast/parser/ts/InvalidParserImpl.ts | 4 +- .../test/ast/parser/ts/InvalidStatements.ts | 103 +- .../test/ast/parser/ts/catch_or_finally_1.ts | 24 +- .../test/ast/parser/ts/test-as-expression.ts | 2 +- .../ast/parser/ts/test-class-constructor1.ts | 2 +- .../ast/parser/ts/test-class-constructor2.ts | 4 +- .../ast/parser/ts/test-class-constructor3.ts | 4 +- .../ast/parser/ts/test-class-constructor5.ts | 2 +- .../ast/parser/ts/test-class-definiton1.ts | 2 +- .../ast/parser/ts/test-class-definiton10.ts | 2 +- .../ast/parser/ts/test-class-definiton11.ts | 6 +- .../ast/parser/ts/test-class-definiton12.ts | 6 +- .../ast/parser/ts/test-class-definiton13.ts | 6 +- .../ast/parser/ts/test-class-definiton14.ts | 6 +- .../ast/parser/ts/test-class-definiton15.ts | 2 +- .../ast/parser/ts/test-class-definiton16.ts | 2 +- .../ast/parser/ts/test-class-definiton17.ts | 2 +- .../ast/parser/ts/test-class-definiton2.ts | 2 +- .../ast/parser/ts/test-class-definiton3.ts | 4 +- .../ast/parser/ts/test-class-definiton4.ts | 2 +- .../ast/parser/ts/test-class-definiton5.ts | 2 +- .../ast/parser/ts/test-class-definiton6.ts | 2 +- .../ast/parser/ts/test-class-definiton8.ts | 6 +- .../ast/parser/ts/test-class-definiton9.ts | 2 +- .../ast/parser/ts/test-enum-declaration2.ts | 2 +- .../ast/parser/ts/test-enum-declaration3.ts | 4 +- .../ast/parser/ts/test-enum-declaration4.ts | 2 +- .../ast/parser/ts/test-enum-declaration5.ts | 2 +- .../test/ast/parser/ts/test-func-decl1.ts | 2 +- .../test/ast/parser/ts/test-func-param1.ts | 2 +- .../test/ast/parser/ts/test-func-param4.ts | 2 +- .../test/ast/parser/ts/test-func-param5.ts | 2 +- .../test/ast/parser/ts/test-func-param6.ts | 2 +- .../test/ast/parser/ts/test-func-param7.ts | 2 +- .../test/ast/parser/ts/test-func-param8.ts | 2 +- .../test/ast/parser/ts/test-interface2.ts | 4 +- .../test/ast/parser/ts/test-interface3.ts | 6 +- .../test/ast/parser/ts/test-intersection1.ts | 2 +- .../test/ast/parser/ts/test-intersection2.ts | 2 +- .../test/ast/parser/ts/test-intersection3.ts | 2 +- .../ast/parser/ts/test-keyword-declare1.ts | 2 +- .../ast/parser/ts/test-keyword-declare10.ts | 2 +- .../ast/parser/ts/test-keyword-declare11.ts | 2 +- .../ast/parser/ts/test-keyword-declare12.ts | 2 +- .../ast/parser/ts/test-keyword-declare13.ts | 2 +- .../ast/parser/ts/test-keyword-declare2.ts | 2 +- .../ast/parser/ts/test-keyword-declare3.ts | 2 +- .../ast/parser/ts/test-keyword-declare4.ts | 2 +- .../ast/parser/ts/test-keyword-declare8.ts | 2 +- .../ast/parser/ts/test-keyword-declare9.ts | 2 +- .../ast/parser/ts/test-member-expression1.ts | 2 +- .../ast/parser/ts/test-member-expression2.ts | 2 +- .../parser/ts/test-ts-conditional-type1.ts | 2 +- .../parser/ts/test-ts-conditional-type2.ts | 2 +- .../parser/ts/test-ts-conditional-type3.ts | 2 +- .../parser/ts/test-ts-conditional-type4.ts | 2 +- .../parser/ts/test-ts-conditional-type5.ts | 2 +- .../parser/ts/test-ts-conditional-type6.ts | 2 +- .../parser/ts/test-ts-conditional-type7.ts | 2 +- .../parser/ts/test-ts-constructor-type1.ts | 2 +- .../parser/ts/test-ts-constructor-type2.ts | 2 +- .../parser/ts/test-ts-constructor-type3.ts | 2 +- .../parser/ts/test-ts-constructor-type4.ts | 2 +- .../ast/parser/ts/test-ts-mapped-type1.ts | 2 +- .../ast/parser/ts/test-ts-mapped-type2.ts | 2 +- .../ast/parser/ts/test-ts-mapped-type3.ts | 2 +- .../ast/parser/ts/test-ts-mapped-type4.ts | 2 +- .../ast/parser/ts/test-ts-mapped-type5.ts | 2 +- .../ast/parser/ts/test-ts-mapped-type6.ts | 2 +- .../ast/parser/ts/test-ts-mapped-type7.ts | 2 +- .../parser/ts/test-ts-parameter-property1.ts | 2 +- .../parser/ts/test-ts-parameter-property10.ts | 2 +- .../parser/ts/test-ts-parameter-property11.ts | 2 +- .../parser/ts/test-ts-parameter-property12.ts | 2 +- .../parser/ts/test-ts-parameter-property2.ts | 2 +- .../parser/ts/test-ts-parameter-property3.ts | 4 +- .../parser/ts/test-ts-parameter-property4.ts | 2 +- .../parser/ts/test-ts-parameter-property5.ts | 2 +- .../parser/ts/test-ts-parameter-property6.ts | 2 +- .../parser/ts/test-ts-parameter-property7.ts | 2 +- .../parser/ts/test-ts-parameter-property8.ts | 2 +- .../parser/ts/test-ts-parameter-property9.ts | 2 +- .../ast/parser/ts/test-ts-type-predicate2.ts | 2 +- .../ast/parser/ts/test-ts-type-predicate3.ts | 4 +- .../ast/parser/ts/test-ts-type-predicate4.ts | 2 +- .../ast/parser/ts/test-ts-type-predicate5.ts | 4 +- .../ast/parser/ts/test-ts-type-predicate6.ts | 2 +- .../ast/parser/ts/test-ts-type-predicate7.ts | 6 +- .../ast/parser/ts/test-ts-type-predicate8.ts | 4 +- .../test/ast/parser/ts/test-tuple-type1.ts | 2 +- .../test/ast/parser/ts/test-tuple-type2.ts | 2 +- .../test/ast/parser/ts/test-tuple-type3.ts | 2 +- .../test/ast/parser/ts/test-tuple-type4.ts | 2 +- .../test/ast/parser/ts/test-type-alias1.ts | 2 +- .../test/ast/parser/ts/test-type-alias2.ts | 2 +- .../test/ast/parser/ts/test-type-alias3.ts | 2 +- .../test/ast/parser/ts/test-type-literal1.ts | 2 +- .../test/ast/parser/ts/test-type-literal2.ts | 4 +- .../test/ast/parser/ts/test-type-literal3.ts | 2 +- .../test/ast/parser/ts/test-type-query1.ts | 2 +- .../test/ast/parser/ts/test-type-query2.ts | 3 +- .../ast/parser/ts/test_class_constructor.ts | 2 +- .../test/ast/parser/ts/test_decorator1.ts | 2 +- .../test/ast/parser/ts/test_decorator2.ts | 2 +- .../test/ast/parser/ts/test_decorator4.ts | 2 +- .../test/ast/parser/ts/test_decorator5.ts | 2 +- .../test/ast/parser/ts/test_decorator6.ts | 4 +- .../test/ast/parser/ts/test_decorator7.ts | 2 +- .../test/ast/parser/ts/test_decorator8.ts | 2 +- .../test/ast/parser/ts/test_generators.ts | 4 +- .../ast/parser/ts/test_insufficient_param.ts | 2 +- .../ast/parser/ts/test_invalid_left_side.ts | 2 +- ..._lexical_dec_not_allowed_async_function.ts | 2 +- .../ts/test_lexical_dec_not_allowed_class.ts | 2 +- ets2panda/test/ast/parser/ts/test_module1.ts | 2 +- ets2panda/test/ast/parser/ts/test_module2.ts | 2 +- ets2panda/test/ast/parser/ts/test_module3.ts | 2 +- ets2panda/test/ast/parser/ts/test_module4.ts | 2 +- ets2panda/test/ast/parser/ts/test_module5.ts | 2 +- ets2panda/test/ast/parser/ts/test_module6.ts | 2 +- .../ast/parser/ts/test_rest_param_not_last.ts | 2 +- .../ts/test_restparam_id_in_dec_context.ts | 2 +- .../ts/test_static_property_prototype.ts | 2 +- .../ast/parser/ts/test_strict_mode_func.ts | 2 +- .../test/ast/parser/ts/test_this_type1.ts | 2 +- .../test/ast/parser/ts/test_this_type2.ts | 2 +- .../ast/parser/ts/test_unexpected_token.ts | 2 +- .../test/ast/parser/ts/test_yield_escaped.ts | 10 +- .../test/ast/parser/ts/trailing_comma_1.ts | 2 +- .../test/ast/parser/ts/trailing_comma_2.ts | 2 +- .../test/ast/parser/ts/trailing_comma_3.ts | 2 +- .../test/ast/parser/ts/trailing_comma_4.ts | 14 +- .../test/ast/parser/ts/unexpected_token_10.ts | 2 +- .../test/ast/parser/ts/unexpected_token_11.ts | 4 +- .../test/ast/parser/ts/unexpected_token_12.ts | 6 +- .../test/ast/parser/ts/unexpected_token_13.ts | 6 +- .../test/ast/parser/ts/unexpected_token_14.ts | 5 +- .../test/ast/parser/ts/unexpected_token_15.ts | 5 +- .../test/ast/parser/ts/unexpected_token_16.ts | 2 +- .../test/ast/parser/ts/unexpected_token_17.ts | 14 +- .../test/ast/parser/ts/unexpected_token_2.ts | 2 +- .../test/ast/parser/ts/unexpected_token_3.ts | 6 +- .../test/ast/parser/ts/unexpected_token_4.ts | 12 +- .../test/ast/parser/ts/unexpected_token_5.ts | 4 +- .../test/ast/parser/ts/unexpected_token_6.ts | 3 +- .../test/ast/parser/ts/unexpected_token_7.ts | 8 +- .../test/ast/parser/ts/unexpected_token_8.ts | 5 +- .../test/ast/parser/ts/unexpected_token_9.ts | 7 +- ...ditionalExpressionCallVoidNeg-expected.txt | 2 +- .../compiler/ets/FunctionType2-expected.txt | 2 +- ...actNewClassInstanceExpression-expected.txt | 14 +- .../ets/func-ref-private-expected.txt | 2 +- ...with_ambiguous_rest_parameter-expected.txt | 6 +- .../ets/generic_arrayaslist-expected.txt | 4 +- .../ets/inferTypeOfArray-expected.txt | 8 +- .../compiler/js/many_locals_1-expected.txt | 17033 +--------------- .../parser/as/test_decorators1-expected.txt | 1 + .../parser/as/test_interface-expected.txt | 1 + .../as/test_object_literal-expected.txt | 1 + .../as/test_type_annotation-expected.txt | 1 + .../import_several_2-expected.txt | 1 + .../import_several_7-expected.txt | 1 + .../subpackage_module_1-expected.txt | 2 +- .../subpackage_module_2-expected.txt | 2 +- .../test/parser/ets/instanceof-expected.txt | 2 +- .../test/parser/ets/interfaces-expected.txt | 2 +- .../test/parser/ets/literals-expected.txt | 2 +- .../ets/re_export/import_10-expected.txt | 2 +- .../ets/re_export/re_export_4-expected.txt | 2 +- .../parser/ets/test_type_alias6-expected.txt | 6 +- .../test/parser/ets/type_alias_1-expected.txt | 2 +- .../incorrect-include/expected.json | 4 +- .../test-decl/check-export-decl/expected.json | 4 +- .../check-extend-dynamic/expected.json | 4 +- .../test-decl/typecheck-decl/expected.json | 4 +- ets2panda/util/diagnostic.cpp | 43 +- ets2panda/util/diagnostic.h | 2 + ets2panda/util/diagnostic/semantic.yaml | 2 +- ets2panda/util/diagnosticEngine.cpp | 13 +- ets2panda/util/options.cpp | 9 +- 2557 files changed, 6714 insertions(+), 23958 deletions(-) rename ets2panda/test/{parser/ets/dynamic_import_tests => ast/compiler/ets}/dynamic_optional_decl.ets (100%) rename ets2panda/test/{ => ast}/compiler/ets/manyLocalsParamRegUsage.ets (100%) create mode 100644 ets2panda/test/ast/parser/ets/generic_lambda_err1.ets create mode 100644 ets2panda/test/ast/parser/ets/generic_lambda_err2.ets create mode 100644 ets2panda/test/ast/parser/ets/generic_lambda_err3.ets diff --git a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets index 52168f2026..f174501cc3 100644 --- a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets +++ b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets @@ -61,13 +61,4 @@ function main(): void { } -/* @@? 47:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 47:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 50:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 50:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 53:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 53:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 56:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 56:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 60:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 60:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 18:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets index 6bcecc08b1..3d46b9783b 100644 --- a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets +++ b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets @@ -17,8 +17,4 @@ const e = 123 @interface Ajno { b:e: string[][X (c + d)],% -/* @@? 18:7 Error TypeError: Cannot find type 'e'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'end of stream'. */ - +/* @@? 17:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets index 733c4a5ea3..88e07267ab 100644 --- a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets +++ b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets @@ -17,8 +17,4 @@ const e = true @interface Ajno { b:e: string[][X (c + d)],% -/* @@? 18:7 Error TypeError: Cannot find type 'e'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'end of stream'. */ - +/* @@? 17:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets index 9e0ebf92e4..4385e22d86 100644 --- a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets +++ b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets @@ -43,23 +43,23 @@ declare const x31 = 0x5 declare const x41 = 0b101 declare const x51 = "abc" -/* @@? 16:37 Error TypeError: Initializers are not allowed in ambient contexts: byte_1 */ -/* @@? 16:66 Error TypeError: Initializers are not allowed in ambient contexts: byte_2 */ -/* @@? 17:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_12 */ -/* @@? 17:64 Error TypeError: Initializers are not allowed in ambient contexts: byte_22 */ -/* @@? 18:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_13 */ -/* @@? 18:70 Error TypeError: Initializers are not allowed in ambient contexts: byte_23 */ -/* @@? 19:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_14 */ -/* @@? 22:31 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: int_12 */ -/* @@? 24:36 Error TypeError: Initializers are not allowed in ambient contexts: int_16 */ -/* @@? 26:39 Error TypeError: Initializers are not allowed in ambient contexts: int_18 */ -/* @@? 27:25 Error TypeError: Initializers are not allowed in ambient contexts: x1 */ -/* @@? 28:25 Error TypeError: Initializers are not allowed in ambient contexts: x2 */ -/* @@? 29:27 Error TypeError: Initializers are not allowed in ambient contexts: y1 */ -/* @@? 30:28 Error TypeError: Initializers are not allowed in ambient contexts: y2 */ -/* @@? 31:25 Error TypeError: Initializers are not allowed in ambient contexts: x3 */ -/* @@? 32:25 Error TypeError: Initializers are not allowed in ambient contexts: x4 */ -/* @@? 33:28 Error TypeError: Initializers are not allowed in ambient contexts: x5 */ -/* @@? 34:27 Error TypeError: Initializers are not allowed in ambient contexts: x6 */ -/* @@? 35:20 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: x7 */ -/* @@? 36:20 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: x8 */ +/* @@? 16:37 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_1 */ +/* @@? 16:66 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_2 */ +/* @@? 17:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_12 */ +/* @@? 17:64 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_22 */ +/* @@? 18:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_13 */ +/* @@? 18:70 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_23 */ +/* @@? 19:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_14 */ +/* @@? 22:31 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: int_12 */ +/* @@? 24:36 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: int_16 */ +/* @@? 26:39 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: int_18 */ +/* @@? 27:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x1 */ +/* @@? 28:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x2 */ +/* @@? 29:27 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: y1 */ +/* @@? 30:28 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: y2 */ +/* @@? 31:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x3 */ +/* @@? 32:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x4 */ +/* @@? 33:28 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x5 */ +/* @@? 34:27 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x6 */ +/* @@? 35:20 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: x7 */ +/* @@? 36:20 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: x8 */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets index 17cacc3580..0109519980 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets @@ -31,23 +31,23 @@ import * as Src from "./annotation_src" ] } -/* @@@ label1 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label2 Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label4 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label6 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label10 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label9 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label8 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label13 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label12 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label11 Error TypeError: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label16 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label15 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label14 Error TypeError: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label19 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label18 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label17 Error TypeError: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label2 Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label3 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label4 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label8 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label9 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label10 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label11 Error Semantic error ESE0039: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label12 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label13 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label14 Error Semantic error ESE0039: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label15 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label16 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label17 Error Semantic error ESE0039: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label18 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label19 Error Semantic error ESE0036: The initial value does not match the expected value. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets index 2f549a22c0..270f958516 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets @@ -31,11 +31,11 @@ import {ClassAuthor, Color} from "./annotation_src" ] } -/* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label2 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label6 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0038: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label2 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label3 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label4 Error Semantic error ESE0038: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0038: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets index abbbc6bcca..a084b6ec71 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets @@ -24,10 +24,10 @@ enum Size{S, M, L, XL, XXL} testProperty5: FixedArray = [Color.GREEN, Color.BLUE] } -/* @@? 20:29 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 21:30 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 22:39 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 22:44 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 23:28 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 24:40 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 24:53 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 20:29 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 21:30 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 22:39 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 22:44 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 23:28 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 24:40 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 24:53 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets index 5199df48ef..73a59db5e2 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets @@ -35,10 +35,10 @@ class B{ foo(){} } -/* @@? 29:24 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 30:24 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 31:25 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 31:30 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 32:24 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 33:25 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 33:38 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 29:24 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 30:24 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 31:25 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 31:30 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 32:24 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 33:25 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 33:38 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets index 9390f6811d..6633e8f5c7 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets @@ -22,5 +22,5 @@ let array: @Anno @Anno FixedArray> let deepArray: @Anno @Anno FixedArray>>>> -/* @@? 21:19 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:19 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:23 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets index ad9dfcdb27..b19326cd86 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets @@ -18,4 +18,4 @@ // annotations for readonly Type let readonlyTuple: readonly @Anno @Anno() [Int, String, Float, FixedArray] -/* @@? 19:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 19:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets b/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets index 201a56615e..3583a2bf54 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets @@ -18,4 +18,4 @@ class A {} let arr : FixedArray | null = [new Object(), new A()]; let elem : Object | undefined = /* @@ label */arr[0]; -/* @@@ label Error TypeError: Value is possibly nullish. */ +/* @@@ label Error Semantic error ESE0010: Value is possibly nullish. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets index d96e87a488..2afd9d4bb8 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets @@ -17,4 +17,4 @@ function toString(this: FixedArray) /* @@ label */{ return "ext-func" } -/* @@@ label Error TypeError: The extension function 'toString' has the same name with public method in class Object */ +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Object */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets index 8d78af6ed5..d9752191cd 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets @@ -20,6 +20,6 @@ function f1(this : B): FixedArray { return this; } -/* @@? 19:35 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:35 Error TypeError: A 'this' cannot be used as type of array. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'FixedArray' */ +/* @@? 19:35 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:35 Error Semantic error ESE0283: A 'this' cannot be used as type of array. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'FixedArray' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets b/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets index b151e98f01..703e93ec41 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets @@ -30,4 +30,4 @@ function main(): void { new A().foo(n) } -/* @@@ label Error TypeError: Cannot obtain iterator type in 'for-of' statement. */ +/* @@@ label Error Semantic error ESE0099: Cannot obtain iterator type in 'for-of' statement. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets b/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets index 44829a28a5..3dc931b707 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets @@ -28,7 +28,7 @@ function main(i : FixedArray, g : int): void { export default function TestFunc(): void {} export default function TestFuncToo(): void {} -/* @@? 20:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: 0 or 1 argument are allowed */ -/* @@? 29:16 Error TypeError: Only one default export is allowed in a module */ +/* @@? 20:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ +/* @@? 29:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets index fdf880e427..00d15c86c3 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets @@ -44,5 +44,5 @@ function main(): int { return 0; } -/* @@? 40:19 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 40:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 40:19 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 40:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets b/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets index f7e4961dcd..ccc5f0745c 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets @@ -19,6 +19,6 @@ let fob:(...args:FixedArray)=>number = (...args:FixedArray) =>{} let foc:(c:string, ...args:FixedArray)=>string = (c:number, ...args:FixedArray):string=>{} -/* @@? 16:56 Error TypeError: Type '(c: Double, ...args: FixedArray) => void' cannot be assigned to type '(c: String, ...args: FixedArray) => void' */ -/* @@? 18:48 Error TypeError: Type '(...args: FixedArray) => void' cannot be assigned to type '(...args: FixedArray) => Double' */ -/* @@? 20:58 Error TypeError: Type '(c: Double, ...args: FixedArray) => String' cannot be assigned to type '(c: String, ...args: FixedArray) => String' */ +/* @@? 16:56 Error Semantic error ESE0318: Type '(c: Double, ...args: FixedArray) => void' cannot be assigned to type '(c: String, ...args: FixedArray) => void' */ +/* @@? 18:48 Error Semantic error ESE0318: Type '(...args: FixedArray) => void' cannot be assigned to type '(...args: FixedArray) => Double' */ +/* @@? 20:58 Error Semantic error ESE0318: Type '(c: Double, ...args: FixedArray) => String' cannot be assigned to type '(c: String, ...args: FixedArray) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets index 7a854d51d5..0c90aedc1d 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets @@ -24,4 +24,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets b/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets index 80478738c5..0e2093e6ec 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets @@ -25,4 +25,4 @@ foo(1,2) foo(1.1) -/* @@? 23:5 Error TypeError: Variable 'b' is used before being assigned. */ +/* @@? 23:5 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets index 0a237c3d9b..e1849d0e04 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets @@ -22,4 +22,4 @@ function main(): void { /* @@ label */test_var.test_array.length = 0; } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets index 91e5197257..d4f492a699 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */test_array.length = 0; } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets index a3f7fcbe7d..160dcd8d6f 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */test_array.length += 1 } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets index de366a4ce9..7d00742359 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets @@ -21,9 +21,9 @@ function main() { let y2: [boolean, int, string, string] = /* @@ label3 */[true, /* @@ label4 */...x2, /* @@ label5 */...x3] } -/* @@? 18:56 Error TypeError: Initializer has 2 elements, but tuple requires 4 */ -/* @@? 18:72 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 18:94 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:61 Error TypeError: Initializer has 3 elements, but tuple requires 4 */ -/* @@? 21:83 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:105 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 4 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label3 Error Semantic error ESE0231: Initializer has 3 elements, but tuple requires 4 */ +/* @@@ label4 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label5 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets index e0e6de5b51..159608fbc8 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets @@ -18,12 +18,12 @@ function main(): void { let a: [number, FixedArray<...number>] = [1]; } -/* @@? 18:21 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 18:32 Error SyntaxError: Invalid Type. */ -/* @@? 18:32 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token '>'. */ -/* @@? 18:35 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 18:35 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 18:35 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:42 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:21 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 18:32 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:32 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:32 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 18:35 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 18:35 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 18:35 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:42 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets index baddef4e13..908ed3114a 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets @@ -18,12 +18,12 @@ function main(): void { let a: [number, string, FixedArray<...Int>] = [2, "a", 3]; } -/* @@? 18:29 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 18:40 Error SyntaxError: Invalid Type. */ -/* @@? 18:40 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 18:40 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:40 Error SyntaxError: Unexpected token '>'. */ -/* @@? 18:43 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 18:43 Error SyntaxError: Class cannot be used as object. */ -/* @@? 18:43 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:47 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:29 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 18:40 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:40 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:40 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:40 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 18:43 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 18:43 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 18:43 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:47 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets index 93fac97891..a6850ba95e 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets @@ -51,10 +51,10 @@ function main() { arktest.assertEQ(/* @@ label8 */u.fld8, new Map()) } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label8 Error TypeError: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label3 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label4 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label5 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label6 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label7 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label8 Error Semantic error ESE0244: Member type must be the same for all union objects. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets b/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets index 2267536e3c..f53595c476 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets @@ -21,4 +21,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Can't resolve array type */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets index 3213a83ac1..4c70aaaa22 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets @@ -37,5 +37,5 @@ function main() { let a = (new A).b } -/* @@? 28:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ +/* @@? 28:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets b/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets index 99c81855b9..49e29f38cc 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets @@ -42,17 +42,17 @@ class A{ paramsFunc7(a:T1/* @@ label13 */[], b:T2/* @@ label14 */[], c:FixedArray){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label9 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label10 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label11 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label12 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label13 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label14 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType10.ets b/ets2panda/test/ast/compiler/ets/FunctionType10.ets index fc1a41058c..0f1aaccd7c 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 0e68f79c69..94a44fd91a 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType3.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType3.ets @@ -23,5 +23,5 @@ function main(): void { /* @@ label */func2()(1, /* @@ label1 */"foo"); } -/* @@@ label1 Error TypeError: Type '"foo"' is not compatible with type 'Int' at index 2 */ -/* @@@ label Error TypeError: No matching call signature for (Int, "foo") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for (Int, "foo") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"foo"' is not compatible with type 'Int' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType5.ets b/ets2panda/test/ast/compiler/ets/FunctionType5.ets index f2d64bff1f..aa0ca543d1 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType5.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType5.ets @@ -18,4 +18,4 @@ function foo (p: number){} let cb = foo; -/* @@? 19:10 Error TypeError: Overloaded method is used as value */ +/* @@? 19:10 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType9.ets b/ets2panda/test/ast/compiler/ets/FunctionType9.ets index d3da4e621a..c6d6e96c4a 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType9.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType9.ets @@ -27,4 +27,4 @@ function main(): void { instance./* @@ label */cb(1); } -/* @@@ label Error TypeError: Property cb is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property cb is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets index 3f64bda07d..4779c12c80 100644 --- a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets +++ b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets @@ -16,6 +16,6 @@ let f = ()=>int {} f() -/* @@? 16:13 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:13 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 16:17 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:13 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets b/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets index 2df27d5f56..165bae1674 100644 --- a/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets +++ b/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets @@ -22,5 +22,5 @@ function main() { let mc = new TH } -/* @@? 17:38 Error TypeError: Cannot make a static reference to the non-static type B */ -/* @@? 17:41 Error TypeError: Cannot make a static reference to the non-static type C */ +/* @@? 22:44 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets index f5bc78e6d6..2c4bb9bdd5 100755 --- a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets +++ b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets @@ -23,7 +23,4 @@ class C { (new C()).foo({v.r2} ) -/* @@? 23:1 Error TypeError: Expected 2 arguments, got 1. */ -/* @@? 23:1 Error TypeError: No matching call signature for foo(...) */ -/* @@? 23:15 Error TypeError: need to specify target type for class composite */ -/* @@? 23:17 Error SyntaxError: Unexpected token, expected ':'. */ +/* @@? 23:17 Error Syntax error ESY0228: Unexpected token, expected ':'. */ diff --git a/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets b/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets index afdeb06d9d..25f8b50323 100644 --- a/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets +++ b/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets @@ -25,4 +25,4 @@ class C { } } -/* @@@ label Error TypeError: Private method is used as value */ +/* @@@ label Error Semantic error ESE0306: Private method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets index 0cae5d18a7..7b27e5a4a1 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets @@ -37,4 +37,4 @@ const router:RouterT = { -/* @@? 32:5 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ +/* @@? 32:5 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets index 73db0e88aa..9bea24f05e 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets @@ -20,4 +20,4 @@ class A { let a:A = {back:()=>{}} -/* @@? 20:12 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ +/* @@? 20:12 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ diff --git a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets index 26506215d9..e6fbe2d192 100755 --- a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets +++ b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets @@ -18,14 +18,13 @@ __empty = 1, } -/* @@? 16:2 Error SyntaxError: Unexpected token '%'. */ -/* @@? 16:4 Error SyntaxError: Unexpected token 'for'. */ -/* @@? 17:3 Error SyntaxError: Expected '(', got 'const'. */ -/* @@? 31:70 Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@? 31:70 Error SyntaxError: Expected ';', got 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Expected '}', got 'end of stream'. */ \ No newline at end of file +/* @@? 16:2 Error Syntax error ESY0227: Unexpected token '%'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'for'. */ +/* @@? 17:3 Error Syntax error ESY0230: Expected '(', got 'const'. */ +/* @@? 32:1 Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets index 367544573f..84d270ad37 100644 --- a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets +++ b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets @@ -16,4 +16,4 @@ class A>{} class B{} class C extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'B' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'B' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets index da65d44cd5..4c0b7dff7a 100644 --- a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets +++ b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets @@ -17,4 +17,4 @@ class A>{} class P2{} class P1 extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'P2' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'P2' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets index a9d2d105b9..7e532178c8 100644 --- a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets +++ b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets @@ -18,6 +18,6 @@ function main() : void { /* @@ label2 */hehe } -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Unresolved reference b */ -/* @@@ label2 Error TypeError: Unresolved reference hehe */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference b */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference hehe */ diff --git a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets index aff155f691..b4be9bef5b 100644 --- a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets +++ b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets @@ -37,9 +37,9 @@ function main(): void { foo2(() => /* @@ label6 */console.println("TEST")); } -/* @@@ label1 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ -/* @@@ label2 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ -/* @@@ label3 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label4 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label5 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label6 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ +/* @@@ label2 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ +/* @@@ label3 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label4 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label5 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label6 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_function.ets b/ets2panda/test/ast/compiler/ets/ambient_function.ets index 7f20bea7e3..5b013dfbef 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_function.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_function.ets @@ -24,5 +24,5 @@ function main() { capset(...(a1 ?? a2)); } -/* @@? 21:1 Error TypeError: Method declaration `capset` must all ambient or non-ambient */ -/* @@? 24:3 Error TypeError: This expression is not callable. */ +/* @@? 21:1 Error Semantic error ESE0399: Method declaration `capset` must all ambient or non-ambient */ +/* @@? 24:3 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets index 18ef053143..03de2b2b20 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets @@ -21,4 +21,4 @@ declare class A { // Extra empty line special for equal position like in file "ambient_indexer_2.ets" // #23399 Error almost has not ideal position, problem in generated code -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets index c9c395e184..b06aecd93d 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets @@ -20,4 +20,4 @@ declare class A { } // #23399 Error almost has not ideal position, problem in generated code -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets index 139fe4e7de..c4920cdd3e 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets @@ -23,4 +23,4 @@ declare namespace JSX { } } -/* @@? 20:30 Error TypeError: Only one index signature is allowed in a class or interface. */ +/* @@? 20:30 Error Semantic error ESE0000: Only one index signature is allowed in a class or interface. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets b/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets index 04da0b06fb..c3449ac3f4 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets @@ -23,4 +23,4 @@ class B { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets b/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets index a644ed266b..7f0d0e1161 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets @@ -25,8 +25,8 @@ interface YYY { default baz(): void {} } -/* @@? 17:36 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 20:26 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 24:7 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 24:18 Error SyntaxError: Private interface methods must have body. */ -/* @@? 25:7 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:36 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 20:26 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 24:7 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 24:18 Error Syntax error ESY0032: Private interface methods must have body. */ +/* @@? 25:7 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets index 089b58848d..6e0a85d5e5 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets @@ -18,5 +18,5 @@ declare namespace MySpace{ function bar() } -/* @@? 17:25 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 18:14 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 17:25 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 18:14 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets index 172846252d..b67f367ffa 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets @@ -19,5 +19,5 @@ declare namespace MySpace{ } } -/* @@? 19:5 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 18:17 Error TypeError: Initializers are not allowed in ambient contexts: a */ +/* @@? 18:17 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: a */ +/* @@? 19:5 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets index 54ec3ecb64..76611afced 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets @@ -20,5 +20,5 @@ declare namespace MySpace{ } } -/* @@? 18:20 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:12 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 18:20 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:12 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets index 22b20fdb66..2cda41bed4 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets @@ -20,5 +20,5 @@ declare namespace MySpace{ } } -/* @@? 18:20 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:9 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 18:20 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:9 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets index 99d90aafe3..654789c244 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets @@ -19,7 +19,7 @@ declare namespace MySpace{ } } -/* @@? 18:15 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:5 Error SyntaxError: Identifier expected. */ +/* @@? 18:15 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 18:17 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:17 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:5 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets index 0a5814bdba..17f5fa10dd 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets @@ -23,5 +23,5 @@ declare namespace MySpace{ authorName: string = "Jima" } -/* @@? 23:26 Error TypeError: The initial value does not match the expected value. */ -/* @@? 23:5 Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@? 23:5 Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@? 23:26 Error Semantic error ESE0036: The initial value does not match the expected value. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets index 94b0e3aa73..78c1efc462 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets @@ -20,5 +20,5 @@ declare namespace A.B.C{ } } -/* @@? 20:5 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 19:17 Error TypeError: Initializers are not allowed in ambient contexts: a */ +/* @@? 19:17 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: a */ +/* @@? 20:5 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets b/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets index 820aa91867..a62f69b875 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets @@ -18,4 +18,4 @@ export declare struct Point2D { y: number; } -/* @@? 16:16 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:16 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets b/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets index 0b8027d62d..2037c6ace4 100644 --- a/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets +++ b/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets @@ -23,4 +23,4 @@ function foo(a : int, b:int, c:int = 10) : string return "aaaa"; } -/* @@? 21:1 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 21:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets index 3791299398..02a90681bd 100644 --- a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets +++ b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets @@ -22,6 +22,6 @@ @ClassAuthor function main() {} -/* @@? 16:12 Error TypeError: Cannot find type 'AnnoSrc'. */ -/* @@? 16:20 Error TypeError: 'ClassAuthor' type does not exist. */ -/* @@? 17:29 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 16:12 Error Semantic error ESE0371: Cannot find type 'AnnoSrc'. */ +/* @@? 16:20 Error Semantic error ESE0070: 'ClassAuthor' type does not exist. */ +/* @@? 17:29 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets b/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets index c077a76fd0..bf494e7581 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets @@ -17,5 +17,5 @@ { } -/* @@? 16:12 Error SyntaxError: Invalid annotation name. */ -/* @@? 17:1 Error SyntaxError: Identifier expected. */ +/* @@? 16:12 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 17:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets b/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets index 195205770f..2d0c6d6189 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets @@ -18,6 +18,6 @@ class MyTest { private property1; } -/* @@? 17:6 Error SyntaxError: Invalid annotation name. */ -/* @@? 18:5 Error SyntaxError: Identifier expected. */ -/* @@? 18:22 Error SyntaxError: Field type annotation expected. */ +/* @@? 17:6 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 18:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:22 Error Syntax error ESY0121: Field type annotation expected. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets index c3ec1fa0a1..b75bf7466b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets @@ -18,7 +18,7 @@ } -/* @@? 16:12 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 16:12 Error TypeError: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ -/* @@? 16:12 Error TypeError: Unresolved reference policy */ -/* @@? 16:12 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 16:12 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@? 16:12 Error Semantic error ESE0004: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ +/* @@? 16:12 Error Semantic error ESE0143: Unresolved reference policy */ +/* @@? 16:12 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets index a70e5c0416..bcf4dd7e54 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets @@ -20,5 +20,5 @@ @/* @@ label1 */Retention({policy:"BYTECODE", a:1}) @interface ClassAuthor {} -/* @@@ label Error TypeError: The required field 'policy' must be specified. Fields without default values cannot be omitted. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Semantic error ESE0044: The required field 'policy' must be specified. Fields without default values cannot be omitted. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets index 60dcc4d014..10a6e06f00 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets @@ -31,23 +31,23 @@ import * as Src from "./annotation_src" ] } -/* @@@ label1 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label2 Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label4 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label6 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label10 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label9 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label8 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label13 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label12 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label11 Error TypeError: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label16 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label15 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label14 Error TypeError: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label19 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label18 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label17 Error TypeError: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label2 Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label3 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label4 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label8 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label9 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label10 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label11 Error Semantic error ESE0039: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label12 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label13 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label14 Error Semantic error ESE0039: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label15 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label16 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label17 Error Semantic error ESE0039: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label18 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label19 Error Semantic error ESE0036: The initial value does not match the expected value. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets index 9d4d6a8a2d..6acac2bedf 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets @@ -31,11 +31,11 @@ import {ClassAuthor, Color} from "./annotation_src" ] } -/* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label2 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label6 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0038: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label2 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label3 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label4 Error Semantic error ESE0038: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0038: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets index b72bc30783..910ef94ec6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets @@ -18,12 +18,12 @@ import {ClassAuthor, Color} from "./annotation_src" @interface ClassAuthor { } -/* @@? 18:2 Error TypeError: Field 'mutiArray' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'color' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'testBools' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'reviewers' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'favorColor' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'testBool' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'reviewersAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'authorAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'authorName' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0040: Field 'mutiArray' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'color' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'testBools' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'reviewers' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'favorColor' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'testBool' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'reviewersAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'authorAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'authorName' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets index 9b170e888b..e2420a768c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets @@ -23,5 +23,5 @@ class A{ testProperty2: string = /* @@ label1 */A.b } -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets index c335fe0f28..6282532627 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets @@ -24,10 +24,10 @@ enum Size{S, M, L, XL, XXL} testProperty5: Size[] = [Color.GREEN, Color.BLUE] } -/* @@? 20:29 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 21:30 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 22:29 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 22:34 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 23:28 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 24:30 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 24:43 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 20:29 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 21:30 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 22:29 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 22:34 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 23:28 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 24:30 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 24:43 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets index aa59307bf8..e6c3d27af3 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets @@ -20,5 +20,5 @@ class OtherType{} /* @@ label1 */testProperty3: [int ,number, string] } -/* @@@ label Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@@ label1 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@@ label1 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets index 861565a709..f94a1e9f1d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets @@ -18,4 +18,4 @@ let a = new MyAnno() -/* @@? 19:13 Error TypeError: Annotations cannot be used as a type. */ +/* @@? 19:13 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets index d631b44dd4..139cca2f4e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets @@ -20,8 +20,8 @@ class A extends MyAnno{} class B implements MyAnno{} type C = MyAnno -/* @@? 19:17 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 19:17 Error TypeError: The super type of 'A' class is not extensible. */ -/* @@? 20:20 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 20:20 Error TypeError: Interface expected here. */ -/* @@? 21:10 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@? 19:17 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0176: The super type of 'A' class is not extensible. */ +/* @@? 20:20 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@? 20:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 21:10 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets index b9d2af1f4a..b745472824 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets @@ -20,5 +20,5 @@ function foo(a:T){} let array:Array = new Array() -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets index ecdc92d3a2..f22350ed58 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets @@ -20,5 +20,5 @@ function foo(a:T){} foo(new /* @@ label1 */MyAnno()) -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets index adaee52bb8..a337a1de46 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets @@ -22,4 +22,4 @@ class A{ new A() -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets index 675316d928..82ae7a5aff 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets @@ -21,6 +21,6 @@ function foo2(): /* @@ label1 */MyAnno {} foo1(new /* @@ label2 */MyAnno()) -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label2 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label2 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets index 221da80716..54adec91c7 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets @@ -23,7 +23,7 @@ class A{ let tuple:[int, string, /* @@ label1 */MyAnno] = [1, "1", new /* @@ label2 */MyAnno()] let union:int|string|/* @@ label3 */MyAnno = 1 -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label3 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label2 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label2 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label3 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets index f7a4b6dbe6..ebb676fe55 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets @@ -19,5 +19,5 @@ let foo1:(a:/* @@ label */MyAnno)=>int let foo2:()=>/* @@ label1 */MyAnno -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets index 0aaa1cd95c..aa85dff80e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets @@ -18,4 +18,4 @@ let a = 1 as MyAnno -/* @@? 19:14 Error TypeError: Annotations cannot be used as a type. */ +/* @@? 19:14 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets index 679bc167bb..1ed5820c70 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets @@ -18,5 +18,4 @@ let a = 1 instanceof MyAnno -/* @@? 19:22 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 19:22 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@? 19:22 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets index 1d1235096c..375a05639c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets @@ -18,4 +18,4 @@ let a = MyAnno.a -/* @@? 19:9 Error TypeError: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:9 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets index ed07114329..de5cc79b0c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets @@ -18,5 +18,7 @@ let a = /* @@ label */MyAnno -/* @@@ label Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@@ label Error TypeError: Annotation name 'MyAnno' used in the wrong context */ +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets index efb0463c50..3faf1f9919 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets @@ -20,5 +20,4 @@ class MyAnno { @/* @@ label */MyAnno() class B{} -/* @@@ label Error TypeError: 'MyAnno' is not an annotation. */ - +/* @@@ label Error Semantic error ESE0067: 'MyAnno' is not an annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets index 9603498b7c..ee43afbaab 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets @@ -18,5 +18,5 @@ function foo(a: /* @@ label1 */Anno) {} -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets index 4904fabba8..ef68e7d02c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets @@ -21,5 +21,5 @@ @MyAnno({testProperty1: /* @@ label */1, testProperty2: /* @@ label1 */""}) function foo(){} -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Type '""' cannot be assigned to type 'Double' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0318: Type '""' cannot be assigned to type 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets index 7057a18a74..a676677faa 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets @@ -21,7 +21,7 @@ @MyAnno({a: 1, b: ""}) class B{} -/* @@? 21:10 Error TypeError: The parameter 'a' does not match any declared property in the annotation 'MyAnno'. */ -/* @@? 21:16 Error TypeError: The parameter 'b' does not match any declared property in the annotation 'MyAnno'. */ -/* @@? 21:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 21:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:10 Error Semantic error ESE0045: The parameter 'a' does not match any declared property in the annotation 'MyAnno'. */ +/* @@? 21:16 Error Semantic error ESE0045: The parameter 'b' does not match any declared property in the annotation 'MyAnno'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets index 09bee29a1d..9f3cd4cea8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets @@ -35,10 +35,10 @@ class B{ foo(){} } -/* @@? 29:24 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 30:24 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 31:25 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 31:30 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 32:24 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 33:25 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 33:38 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 29:24 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 30:24 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 31:25 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 31:30 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 32:24 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 33:25 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 33:38 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets index 0ed48bd82f..785272437e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets @@ -28,5 +28,5 @@ class B{ foo(){} } -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets index c3335a857f..f772188663 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets @@ -24,5 +24,5 @@ namespace A{ namespace B{} } -/* @@? 24:5 Error SyntaxError: Unable to merge namespaces 'B', because their modifiers are different. */ -/* @@? 24:5 Error SyntaxError: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file +/* @@? 24:5 Error Syntax error ESY0006: Unable to merge namespaces 'B', because their modifiers are different. */ +/* @@? 24:5 Error Syntax error ESY0007: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets index 0065afc877..f1ff69d56a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets @@ -24,5 +24,5 @@ namespace A{ @Anno1 namespace A.B{} -/* @@? 25:13 Error SyntaxError: Unable to merge namespaces 'B', because their modifiers are different. */ -/* @@? 25:13 Error SyntaxError: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file +/* @@? 25:13 Error Syntax error ESY0006: Unable to merge namespaces 'B', because their modifiers are different. */ +/* @@? 25:13 Error Syntax error ESY0007: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets index d1da4595c8..bcda8790b1 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets @@ -25,4 +25,4 @@ class A{ x : int } -/* @@? 24:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 24:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets index 0715143054..8702718698 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets @@ -22,4 +22,4 @@ interface itf { } -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets index 007968fca2..b23a05b052 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets @@ -23,4 +23,4 @@ interface itf { foo() : void } -/* @@? 22:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 22:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets index cd013b0eaf..fb983019b6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets @@ -23,4 +23,4 @@ interface itf { x : int } -/* @@? 22:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 22:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets index e47cab8181..50e0c6ca52 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets @@ -29,6 +29,6 @@ namespace A{ namespace C{} } -/* @@? 25:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ -/* @@? 28:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ +/* @@? 25:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ +/* @@? 28:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets index ac45d448f6..bf2c0e9f85 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets @@ -29,6 +29,6 @@ namespace A{ @Anno1 namespace A.B{} -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ -/* @@? 24:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ -/* @@? 29:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ +/* @@? 24:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ +/* @@? 29:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets index 318d48b7e8..dd1cac596c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets @@ -29,6 +29,6 @@ function main() : void { type t2 = Array } -/* @@? 23:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ -/* @@? 29:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 29:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 23:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 29:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 29:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets index a3d0435da0..84f196f328 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets @@ -29,5 +29,5 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 23:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ -/* @@? 28:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 23:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 28:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets index 8128b27304..4046306e0c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets @@ -19,4 +19,4 @@ class A{ @/* @@ label */MyAnno foo(){} } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets index 3a7a02542c..5d1337effd 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets @@ -21,4 +21,4 @@ @/* @@ label */MyAnno({testProperty1: "Jim", testProperty2: 0}) class A{} -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets index 025b88d8e8..301db5fa8a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets @@ -21,4 +21,4 @@ let a = new A(); let show = @Anno()@/* @@ label */Anno(this: A): string => { return "Hello," + this.name; } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets index 73ec9f1bdd..36e304bc84 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets @@ -22,4 +22,4 @@ function foo(): void { } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets index 3f36568887..92c800caea 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets @@ -25,4 +25,4 @@ class A{ } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets index 77a16bcf51..dcd888f32a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets @@ -24,5 +24,5 @@ class B{ foo(){} } -/* @@@ label Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets index 8344afea93..8a050e0282 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets @@ -23,5 +23,5 @@ class B{ foo(){} } -/* @@@ label Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets index e08d9ff87a..de6c3fe74f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets @@ -26,5 +26,5 @@ class B{ y : string } -/* @@? 23:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 25:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 25:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets index 6cfc76a698..d2fb0d5513 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets @@ -24,5 +24,5 @@ function foo(@MyAnno({testProperty1:"", testProperty2: "", testProperty3: "", te } -/* @@? 22:15 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 23:15 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 22:15 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:15 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets index a5ac15f1c7..9bc8fc0dd6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets @@ -26,6 +26,6 @@ interface itf { x : int } -/* @@? 21:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 23:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 25:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 21:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 25:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets index b8246ab8f0..c407028dc8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets @@ -27,6 +27,6 @@ function main() : void { type t2 = Array } -/* @@? 22:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 27:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 27:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 22:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 27:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 27:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets index a3ac67098c..a73e996772 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets @@ -27,5 +27,5 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 22:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 26:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 22:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 26:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets index 3c29581eb4..704d99c83c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets @@ -23,7 +23,7 @@ MyAnno({testProperty1: ""}) class A{ } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 22:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 22:1 Error TypeError: This expression is not callable. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 22:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 22:1 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets index e3162c42f3..74be444f9e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets @@ -18,5 +18,5 @@ /* @@ label */MyAnno function foo(): void {} -/* @@@ label Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@@ label Error TypeError: Annotation name 'MyAnno' used in the wrong context */ +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets index 76f61f04c6..7e555506e8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets @@ -20,5 +20,5 @@ MyAnno({testProperty1: ""}) interface itf { } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets index c982341bff..f0084b0fb3 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets @@ -25,8 +25,8 @@ function main() : void { } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 23:5 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 23:5 Error TypeError: This expression is not callable. */ -/* @@? 24:5 Error SyntaxError: Illegal start of Type Alias expression. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 23:5 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 23:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 24:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets index e7c5570d89..7c0796ced0 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets @@ -24,7 +24,7 @@ function main() : void { let x2 = 1, y2 = 2 } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 23:5 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 23:5 Error TypeError: This expression is not callable. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 23:5 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 23:5 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets index 5ebc260727..14b9e2a268 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets @@ -20,5 +20,5 @@ @MyAnno function foo(): void {} -/* @@? 20:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 20:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets index 9b67fdac38..61f84eee77 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets @@ -26,7 +26,7 @@ class A{ foo2(){} } -/* @@? 20:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets index 3718ea2073..c07c3a67bc 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets @@ -26,5 +26,5 @@ class B{ y0 : string } -/* @@? 23:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets index 10e1fbd162..6b148365f5 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets @@ -25,8 +25,8 @@ function foo0(@MyAnno x: int, @MyAnno({testProperty2: ""}) y: string = "a") { function foo1(@MyAnno({testProperty1: ""}) x: int, @MyAnno({testProperty2: ""}) y: string = "a") { } -/* @@? 22:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:16 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:32 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:53 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:16 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:16 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:32 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:16 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:53 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets index 5e990b139a..ab000c9c1d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets @@ -26,6 +26,6 @@ interface itf { x : int } -/* @@? 21:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets index 0889f68c3e..2ab1e8f40f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets @@ -27,6 +27,6 @@ function main() : void { type t2 = Array } -/* @@? 22:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 27:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 27:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 27:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 27:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets index f2b703a98f..d051a96f9f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets @@ -27,6 +27,8 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 22:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 26:6 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 26:6 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets index a61fa5db89..9b2ec32502 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets @@ -21,5 +21,5 @@ @MyAnno({testProperty2: /* @@ label */"Bob", testProperty1: /* @@ label1 */1}) class A{} -/* @@@ label Error TypeError: Type '"Bob"' cannot be assigned to type 'Double' */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type '"Bob"' cannot be assigned to type 'Double' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets index 28d6784792..767d90c0b9 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets @@ -17,4 +17,4 @@ class A {} @interface A { } -/* @@? 18:12 Error TypeError: Variable 'A' has already been declared. */ +/* @@? 18:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets index b3545ba703..084b5847ee 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets @@ -30,7 +30,7 @@ function foo(){} @Retention("RUNTIME") @interface ClassAuthor{} // Ok -/* @@? 18:2 Error TypeError: Only standard annotations are allowed to be applied on annotations. */ -/* @@? 21:2 Error TypeError: Annotation '@Retention' can only be applied to annotation declarations. */ -/* @@? 24:2 Error TypeError: Annotation '@Retention' can only be applied to annotation declarations. */ -/* @@? 27:12 Error TypeError: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0006: Only standard annotations are allowed to be applied on annotations. */ +/* @@? 21:2 Error Semantic error ESE0003: Annotation '@Retention' can only be applied to annotation declarations. */ +/* @@? 24:2 Error Semantic error ESE0003: Annotation '@Retention' can only be applied to annotation declarations. */ +/* @@? 27:12 Error Semantic error ESE0004: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets index c2bf21da69..bbe102c2ea 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets @@ -22,5 +22,5 @@ let array: @Anno @Anno Int[][] let deepArray: @Anno @Anno Number[][][][][] -/* @@? 21:29 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:42 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:29 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:42 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets index 557e4bc100..f005b957cb 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets @@ -19,6 +19,6 @@ // annotataions for different dimensions of array let a: Int[] @Anno [] -/* @@? 20:14 Error SyntaxError: Unexpected token '@'. */ -/* @@? 20:20 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 20:20 Error TypeError: Can't resolve array type */ +/* @@? 20:14 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 20:20 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 20:20 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets index e3deff1d62..321deec991 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets @@ -16,8 +16,8 @@ @interface this.context; -/* @@? 17:1 Error SyntaxError: Identifier expected. */ -/* @@? 17:1 Error SyntaxError: Invalid annotation name. */ -/* @@? 17:1 Error SyntaxError: Expected '{', got 'this'. */ -/* @@? 17:5 Error SyntaxError: Identifier expected, got '.'. */ -/* @@? 17:13 Error SyntaxError: Missing type annotation for property 'context'. */ +/* @@? 17:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:1 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 17:1 Error Syntax error ESY0230: Expected '{', got 'this'. */ +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got '.'. */ +/* @@? 17:13 Error Syntax error ESY0001: Missing type annotation for property 'context'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets index 23ceb5d0cc..6fceeca99e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets @@ -26,11 +26,11 @@ let boxingNumber: @Anno @Anno Number let boxingChar: @Anno @Anno Char let boxingLong: @Anno @Anno Long -/* @@? 20:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 27:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:23 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 27:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets index 1fc4502625..25ab963803 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets @@ -20,9 +20,9 @@ let func: @Anno @Anno (a: @Anno @Anno string) => @Anno @Anno Int let foo: @Anno @Anno (a?: @Anno @Anno string) => @Anno @Anno Int -/* @@? 20:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:34 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:34 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets index 29e92d7f5d..714ef6e510 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets @@ -34,7 +34,7 @@ let color: (@Anno @Anno Color) // annotations for aliases let c: (@Anno @Anno() C) -/* @@? 26:22 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 32:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 35:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:22 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 32:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 35:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets index 8a5baf54ff..91365918aa 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets @@ -24,6 +24,6 @@ let obj1: @Anno @Anno() object let obj2: @Anno @Anno()MyClass let obj3: @Anno @Anno() C -/* @@? 23:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 23:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets index b848c4ae40..35d7acdbeb 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets @@ -26,6 +26,6 @@ let nll: @Anno @Anno() null // annotations for undefined let ud: @Anno @Anno() undefined -/* @@? 21:15 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 27:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:15 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 27:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets index 7b02aaed57..0c8f29445c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets @@ -19,5 +19,5 @@ let readonlyArray: readonly @Anno @Anno() Int[][] let readonlyTuple: readonly @Anno @Anno() [Int, String, Float, Object[]] -/* @@? 19:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 19:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets index db8b0b2338..d6f282c59f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets @@ -19,4 +19,4 @@ // annotations for string literal let sl: @Anno @Anno() "123" -/* @@? 20:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets index ab62baee9a..c73f0b0a08 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets @@ -21,4 +21,4 @@ class MyClass{} // annotations for tuple let tuple: @Anno @Anno() [@Anno @Anno() Int, @Anno @Anno() String, @Anno @Anno() Object, @Anno @Anno() MyClass] -/* @@? 22:19 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 22:19 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets index c477d4ea76..d8a0689907 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets @@ -25,10 +25,10 @@ class A<@Anno @Anno() T>{ } let array1: @Anno @Anno() Array = new Array() -/* @@? 26:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:40 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:14 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:15 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:40 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:14 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:15 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets index ce66f562c7..ad58bd406f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets @@ -25,4 +25,4 @@ a: @Message({id:1}) @Message({id:1}) @TestAnno string = "1" } -/* @@? 25:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Message' has already been applied to this element. */ \ No newline at end of file +/* @@? 25:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Message' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets index b8fd1d4b76..6b88623a89 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets @@ -33,11 +33,11 @@ class MyClass<@Anno @Anno() T>{ } } -/* @@? 20:22 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:29 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 28:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 28:45 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:39 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:22 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:29 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 28:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 28:45 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:39 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets index 80cf68805e..d6ab0eab87 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets @@ -23,6 +23,6 @@ let a = 1 as @Anno @Anno() Int class C1<@Anno @Anno() T>{} new C1() instanceof @Anno @Anno() C1 -/* @@? 20:28 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 24:40 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 23:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:28 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 23:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:40 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets index 1060f84464..c4e530930c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets @@ -21,8 +21,8 @@ function foo(a: @Anno @Anno() string): @Anno @Anno() Number {return 1} function bar<@Anno @Anno() T>(a: @Anno @Anno() T): @Anno @Anno() T {return a} -/* @@? 21:27 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:50 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:27 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:50 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets index 2a8cf91c29..1b452427c1 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets @@ -19,4 +19,4 @@ // annotations for interface interface I1<@Anno @Anno() T>{} -/* @@? 20:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets index 8b4d5e4b87..5f95afed87 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets @@ -19,5 +19,5 @@ // annotations for covariance and contravariance class gen<@Anno in @Anno T, @Anno out @Anno() U> {} -/* @@? 20:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:40 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:40 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets index c4715190d0..82ff3e8341 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets @@ -28,12 +28,12 @@ let unionType3: @Anno() @Anno() (@Anno @Anno Int | String) // @Message for 'Int | String', @Anno1 for 'Int' and @Anno2 for 'String' let unionType4: @Anno() @Anno() (@Anno @Anno Int | @Anno @Anno String) -/* @@? 20:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:48 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:47 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:48 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:47 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets index 58fc6ec292..e5b66cc9df 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets @@ -44,10 +44,10 @@ let b:@MyAnno() string function foo(@Anno() a:number){} // ok -/* @@? 18:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 21:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 25:6 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 30:6 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 34:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 37:8 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 42:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 21:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 25:6 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 30:6 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 34:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 37:8 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 42:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets index e9828b1b8e..5828602bac 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets @@ -16,6 +16,5 @@ @ns.Anno<()=>void> class A{} -/* @@? 16:2 Error TypeError: Cannot find type 'ns'. */ -/* @@? 16:5 Error TypeError: 'Anno' type does not exist. */ -/* @@? 16:5 Error TypeError: 'Anno' is not an annotation. */ \ No newline at end of file +/* @@? 16:1 Error Syntax error ESY0000: Decorators are not valid here */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '>'. */ diff --git a/ets2panda/test/ast/compiler/ets/array_index.ets b/ets2panda/test/ast/compiler/ets/array_index.ets index b56d97710a..41df02e0e7 100644 --- a/ets2panda/test/ast/compiler/ets/array_index.ets +++ b/ets2panda/test/ast/compiler/ets/array_index.ets @@ -15,4 +15,4 @@ const a: Char[] = new Char[n = 10]; -/* @@? 16:28 Error TypeError: Unresolved reference n */ +/* @@? 16:28 Error Semantic error ESE0143: Unresolved reference n */ diff --git a/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets b/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets index 795cee9fa2..9c08656e80 100644 --- a/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets +++ b/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets @@ -18,4 +18,4 @@ class A {} let arr : Object[] | null = [new Object(), new A()]; let elem : Object | undefined = /* @@ label */arr[0]; -/* @@@ label Error TypeError: Value is possibly nullish. */ +/* @@@ label Error Semantic error ESE0010: Value is possibly nullish. */ diff --git a/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets b/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets index 418b425ebf..a080ad077a 100644 --- a/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets +++ b/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets @@ -83,18 +83,18 @@ function foo6() { new [T|Object][2] } -/* @@? 18:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 22:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 23:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 31:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 35:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 40:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 41:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 42:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 42:9 Error TypeError: Cannot find type 'U'. */ -/* @@? 64:9 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 70:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 76:9 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 77:9 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 82:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 83:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 18:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 22:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 23:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 31:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 35:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 40:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 41:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 42:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 42:9 Error Semantic error ESE0371: Cannot find type 'U'. */ +/* @@? 64:9 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 70:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 76:9 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 77:9 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 82:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 83:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ diff --git a/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets b/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets index 80a265b50a..c4bed97294 100644 --- a/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets +++ b/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets @@ -24,35 +24,35 @@ const b: Record number> = { [(():number => +("bar"))()]: (y: string):number => y.length }; -/* @@? 16:35 Error TypeError: need to specify target type for class composite */ -/* @@? 17:5 Error SyntaxError: Unexpected token. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token. */ -/* @@? 17:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '1'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 20:50 Error TypeError: need to specify target type for class composite */ -/* @@? 21:5 Error SyntaxError: Unexpected token. */ -/* @@? 21:6 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:20 Error TypeError: Wrong operand type for unary expression */ -/* @@? 21:28 Error SyntaxError: Unexpected token. */ -/* @@? 21:31 Error SyntaxError: Unexpected token ']'. */ -/* @@? 21:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:34 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 21:43 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 23:6 Error SyntaxError: Unexpected token ','. */ -/* @@? 23:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:20 Error TypeError: Wrong operand type for unary expression */ -/* @@? 24:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:32 Error TypeError: This expression is not callable. */ -/* @@? 24:36 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:36 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:38 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:38 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 24:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 24:45 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:46 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:46 Error TypeError: The type of parameter 'number' cannot be inferred */ -/* @@? 24:56 Error TypeError: Unresolved reference y */ -/* @@? 25:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:35 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 17:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:6 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 17:22 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 20:50 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 21:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:6 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:20 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 21:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:31 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 21:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:34 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 21:43 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 23:6 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 23:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:20 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 24:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:32 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:36 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:38 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:38 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 24:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:45 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:46 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:46 Error Semantic error ESE0132: The type of parameter 'number' cannot be inferred */ +/* @@? 24:56 Error Semantic error ESE0143: Unresolved reference y */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets index 8ada0b3f4a..74c685d7c6 100644 --- a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets @@ -17,5 +17,4 @@ let foo: (P: string, Q: string) => void foo((value: Object): void => { }, (err: Error): void => { }) -/* @@? 18:1 Error TypeError: No matching call signature for ((value: Object) => void, (err: Error) => void) */ -/* @@? 18:5 Error TypeError: Type '(value: Object) => void' is not compatible with type 'String' at index 1 */ +/* @@? 18:13 Error Semantic error ESE0000: Cannot find name Object */ diff --git a/ets2panda/test/ast/compiler/ets/assert_bad.ets b/ets2panda/test/ast/compiler/ets/assert_bad.ets index d22c1d7fab..d4f7f54b8b 100644 --- a/ets2panda/test/ast/compiler/ets/assert_bad.ets +++ b/ets2panda/test/ast/compiler/ets/assert_bad.ets @@ -19,5 +19,5 @@ function main(): int { return 0; } -/* @@@ label1 Error TypeError: No matching call signature for assertEQ(Int, Int, Int) */ -/* @@@ label2 Error TypeError: Type 'Int' is not compatible with type 'String|undefined' at index 3 */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertEQ(Int, Int, Int) */ +/* @@@ label2 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String|undefined' at index 3 */ diff --git a/ets2panda/test/ast/compiler/ets/assign_const.ets b/ets2panda/test/ast/compiler/ets/assign_const.ets index 150e93078f..6a156d017f 100644 --- a/ets2panda/test/ast/compiler/ets/assign_const.ets +++ b/ets2panda/test/ast/compiler/ets/assign_const.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */c = c + 1; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a constant variable c */ diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets index de02a74245..18e82fbe69 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets @@ -46,9 +46,9 @@ function relationalStoreCustomDirTest() { let ret = await storestore.insert("test", valueBucket); }) } -/* @@? 17:5 Error TypeError: Unresolved reference it */ -/* @@? 17:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:5 Error TypeError: This expression is not callable. */ -/* @@? 19:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 31:5 Error TypeError: This expression is not callable. */ -/* @@? 31:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference it */ +/* @@? 17:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 31:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 31:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets index c4fef79dcf..1ee19a5942 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets @@ -46,21 +46,21 @@ function relationalStoreCustomDirTest() { let ret = await storestore.insert("test", valueBucket); }) } -/* @@? 17:5 Error TypeError: Unresolved reference it */ -/* @@? 17:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:5 Error TypeError: This expression is not callable. */ -/* @@? 19:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 19:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:5 Error TypeError: This expression is not callable. */ -/* @@? 31:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 31:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 31:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 31:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference it */ +/* @@? 17:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 19:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 31:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 31:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 31:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 31:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/async_import_3.ets b/ets2panda/test/ast/compiler/ets/async_import_3.ets index 165c0f7649..94e1a48433 100644 --- a/ets2panda/test/ast/compiler/ets/async_import_3.ets +++ b/ets2panda/test/ast/compiler/ets/async_import_3.ets @@ -15,5 +15,5 @@ import {foo} from './async_import_4' let prop: int = foo() -/* @@? 16:17 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 16:17 Error TypeError: Type 'void' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 16:17 Error Semantic error ESE0318: Type 'void' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets b/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets index 8684c72349..82387ccb4c 100644 --- a/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets @@ -19,4 +19,4 @@ async function foo(arg: number): str { return ""; } -/* @@? 18:16 Error TypeError: Return type of async function must be 'Promise'. */ +/* @@? 18:16 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ diff --git a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets index 0e68c90948..df55eb4fe2 100644 --- a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets +++ b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets @@ -28,7 +28,5 @@ function main() { ins.text = "He"; } -/* @@? 23:5 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 23:9 Error SyntaxError: Unexpected token '.'. */ -/* @@? 23:10 Error TypeError: Variable 'text' has already been declared. */ -/* @@? 23:17 Error TypeError: Property 's' must be accessed through 'this' */ +/* @@? 17:9 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 17:9 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets index 5ea74fcbfb..69599c3edf 100644 --- a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets +++ b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets @@ -38,13 +38,13 @@ for (const v2 of vStr) { const leftTest = v1 << v0; } -/* @@? 29:21 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ -/* @@? 30:21 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ -/* @@? 31:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 32:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 33:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 34:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 35:24 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 36:24 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 37:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 38:22 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 29:21 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 30:21 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 31:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 32:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 33:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 34:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 35:24 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 36:24 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 37:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 38:22 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets b/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets index b5b4c1be3a..543f378ea5 100644 --- a/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets +++ b/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets @@ -18,4 +18,4 @@ const v1 = 213n; let v2 = v0 >>> v1; -/* @@? 19:10 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 19:10 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets index 4bee69637b..64fe700636 100644 --- a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets @@ -15,8 +15,8 @@ /* @@ label1 */@@/@ -/* @@@ label1 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 23:1 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Invalid annotation name. */ -/* @@? 23:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 23:1 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets index 69ec693282..b388ec199f 100644 --- a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets +++ b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets @@ -15,9 +15,9 @@ let tup : [['arkTs' | boolean, 1 | true]] = [['arkTs', 1]]; -/* @@? 16:32 Error SyntaxError: Invalid Type. */ -/* @@? 16:32 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token '1'. */ -/* @@? 16:32 Error TypeError: Wrong type of operands for binary expression */ -/* @@? 16:40 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token ']'. */ +/* @@? 16:32 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 16:32 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 16:32 Error Semantic error ESE0346: Wrong type of operands for binary expression */ +/* @@? 16:40 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets b/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets index b0a58f1f58..e8e7f956d2 100644 --- a/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets +++ b/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets @@ -21,5 +21,5 @@ } } -/* @@? 18:5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ diff --git a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets index 4b463095b7..abca87b8c9 100644 --- a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets +++ b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets @@ -23,5 +23,5 @@ function main() : void { refInt(b); } -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'Short' */ -/* @@@ label2 Error TypeError: Type 'Int' cannot be assigned to type 'Short' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Short' */ +/* @@@ label2 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Short' */ diff --git a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets index 9c4ec53ad7..89700cdb58 100755 --- a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets +++ b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets @@ -17,21 +17,9 @@ Class MyClass { compare((value: number, index:number, arr: Array)) {} } -/* @@? 16:1 Error SyntaxError: Class cannot be used as object. */ -/* @@? 16:7 Error SyntaxError: Unexpected token 'MyClass'. */ -/* @@? 16:7 Error TypeError: Unresolved reference MyClass */ -/* @@? 16:15 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:3 Error TypeError: Unresolved reference compare */ -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:27 Error SyntaxError: Unexpected token 'index'. */ -/* @@? 17:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:33 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:39 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:41 Error SyntaxError: Unexpected token 'arr'. */ -/* @@? 17:46 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:46 Error TypeError: No matching call signature with trailing lambda */ -/* @@? 17:59 Error SyntaxError: Unexpected token, expected '('. */ \ No newline at end of file +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'MyClass'. */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:19 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 17:33 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 17:46 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 17:62 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets b/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets index dca694ab14..7dd07c381e 100644 --- a/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets +++ b/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets @@ -21,4 +21,4 @@ function main(){ let a = new A./* @@ label */foo(123) } -/* @@@ label Error TypeError: Invalid type reference. */ +/* @@@ label Error Semantic error ESE0299: Invalid type reference. */ diff --git a/ets2panda/test/ast/compiler/ets/call_signature_error.ets b/ets2panda/test/ast/compiler/ets/call_signature_error.ets index 8ec272c489..ead6895d24 100644 --- a/ets2panda/test/ast/compiler/ets/call_signature_error.ets +++ b/ets2panda/test/ast/compiler/ets/call_signature_error.ets @@ -17,5 +17,5 @@ type DescribableFunction = /* @@ label1 */{ /* @@ label2 */(someArg: number): string } -/* @@@ label1 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@@ label1 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ diff --git a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets index 69f13c49a7..5f251f1e4f 100644 --- a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets +++ b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets @@ -15,7 +15,4 @@ [a, b, ...rest] = [1, 2, 3, 4, 5]; -/* @@? 16:1 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:2 Error TypeError: Unresolved reference a */ -/* @@? 16:5 Error TypeError: Unresolved reference b */ -/* @@? 16:11 Error TypeError: Unresolved reference rest */ +/* @@? 16:2 Error Semantic error ESE0000: Cannot find name 'a'. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets b/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets index 5315c5449b..2444e5dab1 100644 --- a/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets +++ b/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets @@ -17,5 +17,5 @@ function foo() { let s = "2".concat(s).concat("4"); } -/* @@? 17:13 Error TypeError: Circular call function */ -/* @@? 17:24 Error TypeError: Variable 's' is accessed before it's initialization. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0381: Circular call function */ +/* @@? 17:24 Error Semantic error ESE0365: Variable 's' is accessed before it's initialization. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets index 3039b89682..498eeecf82 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets @@ -26,5 +26,4 @@ class cls implements I1 { foo2():void {} } -/* @@? 16:11 Error TypeError: Cyclic inheritance involving I1. */ - +/* @@? 16:11 Error Semantic error ESE0310: Cyclic inheritance involving I1. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets index d6f8d2deb5..96df2830b7 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets @@ -30,5 +30,4 @@ class C extends A { } } -/* @@? 16:7 Error TypeError: Cyclic inheritance involving A. */ - +/* @@? 16:7 Error Semantic error ESE0310: Cyclic inheritance involving A. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_unfold.ets b/ets2panda/test/ast/compiler/ets/circular_unfold.ets index 6fabd26be9..470c60419d 100644 --- a/ets2panda/test/ast/compiler/ets/circular_unfold.ets +++ b/ets2panda/test/ast/compiler/ets/circular_unfold.ets @@ -19,7 +19,4 @@ function foo() { return b - a } -/* @@? 17:11 Error TypeError: Circular dependency detected for identifier: a */ -/* @@? 17:15 Error TypeError: Variable 'a' is accessed before it's initialization. */ -/* @@? 18:11 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 18:15 Error TypeError: Variable 'b' is accessed before it's initialization. */ +/* @@? 18:11 Error Semantic error ESE0000: Block-scoped variable 'b' used before its declaration */ diff --git a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets index fc6881da7f..2590fc2e64 100644 --- a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets +++ b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets @@ -43,11 +43,11 @@ function main() { let maind = mainc; } -/* @@? 18:12 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 23:19 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 31:15 Error TypeError: Unresolved reference globalb */ -/* @@? 33:5 Error TypeError: Circular dependency detected for identifier: globalc */ -/* @@? 36:7 Error TypeError: Circular dependency detected for identifier: consta */ -/* @@? 40:17 Error TypeError: Unresolved reference mainb */ -/* @@? 42:17 Error TypeError: Variable 'maind' is accessed before it's initialization. */ -/* @@? 43:9 Error TypeError: Circular dependency detected for identifier: maind */ +/* @@? 18:12 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 23:19 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 31:15 Error Semantic error ESE0143: Unresolved reference globalb */ +/* @@? 33:5 Error Semantic error ESE0308: Circular dependency detected for identifier: globalc */ +/* @@? 36:7 Error Semantic error ESE0308: Circular dependency detected for identifier: consta */ +/* @@? 40:17 Error Semantic error ESE0143: Unresolved reference mainb */ +/* @@? 42:17 Error Semantic error ESE0365: Variable 'maind' is accessed before it's initialization. */ +/* @@? 43:9 Error Semantic error ESE0308: Circular dependency detected for identifier: maind */ diff --git a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets index d495c7c951..7c6da79d71 100644 --- a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets @@ -29,25 +29,4 @@ class A { } } -/* @@? 23:23 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 24:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 24:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 24:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:20 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 24:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:23 Error SyntaxError: Field type annotation expected. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '.'. */ -/* @@? 24:31 Error SyntaxError: Field type annotation expected. */ -/* @@? 24:34 Error SyntaxError: Unexpected token '='. */ -/* @@? 24:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:38 Error TypeError: Unresolved reference caches */ -/* @@? 25:21 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 25:21 Error TypeError: No matching construct signature for class_cyclic_constructor.A(...tuple) */ -/* @@? 25:30 Error TypeError: Unresolved reference tuple */ -/* @@? 26:31 Error TypeError: Property 'bar' does not exist on type 'A' */ -/* @@? 27:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 28:9 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 28:14 Error TypeError: Property 'x' does not exist on type 'Error' */ -/* @@? 30:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 24:9 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/class_inheritance.ets b/ets2panda/test/ast/compiler/ets/class_inheritance.ets index 78e049e51a..7b72e99452 100644 --- a/ets2panda/test/ast/compiler/ets/class_inheritance.ets +++ b/ets2panda/test/ast/compiler/ets/class_inheritance.ets @@ -21,5 +21,5 @@ class BBB extends AAA { objectProp = {name: 'Jone', age: 30}; } -/* @@? 17:5 Error TypeError: Cannot infer type for objectProp because class composite needs an explicit target type */ -/* @@? 21:5 Error TypeError: Cannot infer type for objectProp because class composite needs an explicit target type */ \ No newline at end of file +/* @@? 17:5 Error Semantic error ESE0174: Cannot infer type for objectProp because class composite needs an explicit target type */ +/* @@? 21:5 Error Semantic error ESE0174: Cannot infer type for objectProp because class composite needs an explicit target type */ diff --git a/ets2panda/test/ast/compiler/ets/class_literal.ets b/ets2panda/test/ast/compiler/ets/class_literal.ets index 6162acc111..31c6b078dd 100644 --- a/ets2panda/test/ast/compiler/ets/class_literal.ets +++ b/ets2panda/test/ast/compiler/ets/class_literal.ets @@ -22,4 +22,4 @@ let rectangle = class { width: number; } -/* @@? 26:1 Error TypeError: Class literal is not yet supported. */ +/* @@? 26:1 Error Semantic error ESE0020: Class literal is not yet supported. */ diff --git a/ets2panda/test/ast/compiler/ets/class_return_as_object.ets b/ets2panda/test/ast/compiler/ets/class_return_as_object.ets index c4b77979fb..ad8b8406ac 100644 --- a/ets2panda/test/ast/compiler/ets/class_return_as_object.ets +++ b/ets2panda/test/ast/compiler/ets/class_return_as_object.ets @@ -22,4 +22,4 @@ function getExampleClass() { const exampleClassReference = getExampleClass; exampleClassReference().toString(); -/* @@? 19:12 Error SyntaxError: Class cannot be used as object. */ \ No newline at end of file +/* @@? 19:12 Error Syntax error ESY0318: Class cannot be used as object. */ diff --git a/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets b/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets index 4c4d1ca68c..33697815e2 100644 --- a/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets +++ b/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets @@ -27,14 +27,14 @@ export default class TreeMap implements ReadonlyTreeMap { } } -/* @@? 16:47 Error TypeError: Cannot find type 'ReadonlyTreeMap'. */ -/* @@? 16:47 Error TypeError: Interface expected here. */ -/* @@? 18:39 Error TypeError: Cannot find type 'TreeMapEntry'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 'default'. */ -/* @@? 19:24 Error SyntaxError: Unexpected token 'namespace'. */ -/* @@? 19:24 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 21:15 Error TypeError: Variable 'buffer' has already been declared. */ -/* @@? 21:15 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 24:32 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 26:20 Error TypeError: Cannot find type 'buffer'. */ +/* @@? 16:47 Error Semantic error ESE0371: Cannot find type 'ReadonlyTreeMap'. */ +/* @@? 16:47 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 18:39 Error Semantic error ESE0371: Cannot find type 'TreeMapEntry'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 'default'. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token 'namespace'. */ +/* @@? 19:24 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 21:15 Error Semantic error ESE0351: Variable 'buffer' has already been declared. */ +/* @@? 21:15 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 24:32 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 26:20 Error Semantic error ESE0371: Cannot find type 'buffer'. */ diff --git a/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets b/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets index 4f419d33d4..8691fed4e4 100644 --- a/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets +++ b/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets @@ -15,4 +15,4 @@ class A {b5 : boolean = /* @@ label1 */7;} -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'Boolean' */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Boolean' */ diff --git a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets index d852f65291..b559f78997 100644 --- a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets +++ b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets @@ -16,9 +16,9 @@ // (arkts-no-conditional-types) type X = T extends number ? T : string -/* @@? 17:15 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 17:15 Error TypeError: Conditional type aliases are not supported. Introduce a new type with constraints explicitly, or rewrite logic using Object! */ -/* @@? 17:23 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:23 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:32 Error TypeError: Unresolved reference T */ -/* @@? 17:36 Error TypeError: Type name 'string' used in the wrong context */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 17:15 Error Semantic error ESE136365: Conditional type aliases are not supported. Introduce a new type with constraints explicitly, or rewrite logic using Object! */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:23 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:32 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:36 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets index ece14278ce..186911a2f7 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets @@ -16,4 +16,4 @@ const constExpr = "123" let variable: constExpr = 42 -/* @@? 17:15 Error TypeError: Cannot find type 'constExpr'. */ +/* @@? 17:15 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets index 60cb72873e..fe23ec4d6f 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets @@ -28,6 +28,6 @@ class A { const constExpr = new A let variable: constExpr.constClass.constField = 42 -/* @@? 29:15 Error TypeError: Cannot find type 'constExpr'. */ -/* @@? 29:25 Error TypeError: 'constClass' type does not exist. */ -/* @@? 29:36 Error TypeError: 'constField' type does not exist. */ +/* @@? 29:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ +/* @@? 29:25 Error Semantic error ESE0070: 'constClass' type does not exist. */ +/* @@? 29:36 Error Semantic error ESE0070: 'constField' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets index ba90d65351..14b96d5567 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets @@ -20,5 +20,5 @@ class A { const constExpr = new A let variable: constExpr.constField = 42 -/* @@? 21:15 Error TypeError: Cannot find type 'constExpr'. */ -/* @@? 21:25 Error TypeError: 'constField' type does not exist. */ +/* @@? 21:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ +/* @@? 21:25 Error Semantic error ESE0070: 'constField' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets index fa6ab227a5..5981495eb3 100644 --- a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets +++ b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets @@ -22,6 +22,6 @@ const a = +(flag) const b = -(flag) const c = ~(flag) -/* @@? 21:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 22:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 23:11 Error TypeError: Wrong operand type for unary expression */ +/* @@? 21:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 22:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 23:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ diff --git a/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets b/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets index 8a8a7fa511..4bb13ac099 100644 --- a/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets +++ b/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets @@ -19,5 +19,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Unresolved reference MathPartialSums */ -/* @@@ label Error TypeError: Only constant expression allowed for element access on tuples. */ +/* @@? 16:18 Error Semantic error ESE0000: Cannot find name int */ diff --git a/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets b/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets index 8685ee6c0d..84fcad306a 100644 --- a/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets +++ b/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets @@ -20,4 +20,4 @@ enum Color { C = /* @@ label */constVar } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets index 79d20a19ee..7d538df902 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets @@ -18,4 +18,4 @@ function main(): void { return; } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets index 6dd1de85e1..27e5d43f65 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets @@ -21,5 +21,5 @@ function getD(d : double): Int { function main(): void { } -/* @@@ label Error TypeError: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ -/* @@@ label1 Error TypeError: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Semantic error ESE0091: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets b/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets index 18a14085dc..4fb7c9f4d7 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets @@ -30,9 +30,9 @@ function main() { foo(NaN); } -/* @@? 28:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 28:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ -/* @@? 29:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 29:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ -/* @@? 30:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 30:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 28:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 28:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 29:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 29:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 30:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 30:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets b/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets index cd8dc86933..23efd40252 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets @@ -95,4 +95,4 @@ function main(): void { uglifruit(); */ } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/compiler/ets/debugger-statement.ets b/ets2panda/test/ast/compiler/ets/debugger-statement.ets index 0f2f52cc71..2132596a4d 100644 --- a/ets2panda/test/ast/compiler/ets/debugger-statement.ets +++ b/ets2panda/test/ast/compiler/ets/debugger-statement.ets @@ -22,4 +22,4 @@ function main(): void { } } -/* @@? 20:9 Error SyntaxError: Debugger statement is not supported! */ \ No newline at end of file +/* @@? 20:9 Error Syntax error ESY0299: Debugger statement is not supported! */ diff --git a/ets2panda/test/ast/compiler/ets/declaration_merging.ets b/ets2panda/test/ast/compiler/ets/declaration_merging.ets index b553f41948..272bee7a95 100644 --- a/ets2panda/test/ast/compiler/ets/declaration_merging.ets +++ b/ets2panda/test/ast/compiler/ets/declaration_merging.ets @@ -27,6 +27,5 @@ } } -/* @@? 24:8 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 24:8 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ - \ No newline at end of file +/* @@? 24:8 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 24:8 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets index a077650b6a..fb4cdde146 100644 --- a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets +++ b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets @@ -24,5 +24,4 @@ declare namespace A { } -/* @@@ label Error TypeError: Variable 'c' has already been declared. */ - +/* @@@ label Error Semantic error ESE0351: Variable 'c' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets index 3ba2dfbb74..647f8cd27b 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets @@ -15,7 +15,7 @@ declare const type typeA = int; -/* @@? 16:20 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:20 Error SyntaxError: Unexpected token 'typeA'. */ -/* @@? 16:20 Error TypeError: Unresolved reference typeA */ -/* @@? 16:28 Error SyntaxError: Unexpected token 'int'. */ +/* @@? 16:20 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token 'typeA'. */ +/* @@? 16:20 Error Semantic error ESE0143: Unresolved reference typeA */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token 'int'. */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets index ba03a78da1..2aa3fe0e03 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets @@ -21,4 +21,4 @@ declare type type_utility = Partial; let a : type_utility = {description : 1234} -/* @@? 22:39 Error TypeError: Type 'Int' is not compatible with type 'String|undefined' at property 'description' */ +/* @@? 22:39 Error Semantic error ESE0319: Type 'Int' is not compatible with type 'String|undefined' at property 'description' */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets index ee618b7cbe..79be154dcc 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets @@ -22,5 +22,4 @@ declare type type_utility = Required; let a : type_utility = {title : "declare type alias test"} -/* @@? 22:24 Error TypeError: Class property 'description' needs to be initialized for Required. */ - +/* @@? 22:24 Error Semantic error ESE0226: Class property 'description' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets index 76fdc63e58..96b30ed110 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets @@ -21,5 +21,4 @@ let a : int[] = [1,2,3] let b : type_array_alias = a; -/* @@? 21:37 Error TypeError: Type 'Array' cannot be assigned to type 'Array>|Array' */ - +/* @@? 21:37 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Array>|Array' */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets index 0b54a5df0f..7d001a8682 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets @@ -16,5 +16,4 @@ import typeA from './declareType_neg_export' let a : typeA = new Array() -/* @@? 16:22 Error TypeError: Type 'Array' cannot be assigned to type 'Array' */ - +/* @@? 16:22 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets index ac3975abae..e4355692d8 100644 --- a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets +++ b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets @@ -26,4 +26,4 @@ class B { export default {A, B} -/* @@? 27:20 Error SyntaxError: export default is not allowed to export multiple specifiers. */ +/* @@? 27:20 Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ diff --git a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets index 4f1f8f9fb0..ab8619d625 100644 --- a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets +++ b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets @@ -15,4 +15,4 @@ export default * from './export_default1' -/* @@? 16:18 Error SyntaxError: Cannot use 'export default' in re-export context */ +/* @@? 16:18 Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ diff --git a/ets2panda/test/ast/compiler/ets/default_param_declare.ets b/ets2panda/test/ast/compiler/ets/default_param_declare.ets index 491faa15e8..3f9491fe7c 100644 --- a/ets2panda/test/ast/compiler/ets/default_param_declare.ets +++ b/ets2panda/test/ast/compiler/ets/default_param_declare.ets @@ -17,5 +17,5 @@ declare class A{ foo(/* @@ label1 */a:number = 1, /* @@ label2 */b:int = 2):void } -/* @@@ label1 Error SyntaxError: A parameter initializer is only allowed in a function or constructor implementation. */ -/* @@@ label2 Error SyntaxError: A parameter initializer is only allowed in a function or constructor implementation. */ +/* @@@ label1 Error Syntax error ESY0328: A parameter initializer is only allowed in a function or constructor implementation. */ +/* @@@ label2 Error Syntax error ESY0328: A parameter initializer is only allowed in a function or constructor implementation. */ diff --git a/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets b/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets index 973142e608..45efc10557 100644 --- a/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets +++ b/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets @@ -17,12 +17,6 @@ class Racer { stat; } -/* @@? 17:9 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:16 Error TypeError: Default type of type parameter has circular dependency. */ -/* @@? 17:22 Error TypeError: 'f' type does not exist. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:25 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:25 Error SyntaxError: Unexpected token '>'. */ +/* @@? 17:25 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:24 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/compiler/ets/division-by-zero.ets b/ets2panda/test/ast/compiler/ets/division-by-zero.ets index 85b5646d73..d3a5b600e3 100644 --- a/ets2panda/test/ast/compiler/ets/division-by-zero.ets +++ b/ets2panda/test/ast/compiler/ets/division-by-zero.ets @@ -20,7 +20,7 @@ function main() : void { let mod_long: long = /* @@ label4 */1 % 0; } -/* @@@ label1 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label2 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label3 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label4 Error SyntaxError: Division by zero is not allowed. */ +/* @@@ label1 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label2 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label3 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label4 Error Syntax error ESY0273: Division by zero is not allowed. */ diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_optional_decl.ets b/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets similarity index 100% rename from ets2panda/test/parser/ets/dynamic_import_tests/dynamic_optional_decl.ets rename to ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets diff --git a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets index 09828e7932..71a3c07e92 100644 --- a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets +++ b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets @@ -21,6 +21,6 @@ class Src implements Dep { someMethod? } -/* @@? 17:14 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ -/* @@? 21:14 Error SyntaxError: Field type annotation expected. */ +/* @@? 17:14 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:14 Error Syntax error ESY0121: Field type annotation expected. */ diff --git a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets index ea4da1ee58..be008073fe 100644 --- a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets +++ b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets @@ -30,11 +30,11 @@ class A{ } } -/* @@@ label1 Error TypeError: Can't resolve array type */ -/* @@@ label2 Error TypeError: Can't resolve array type */ -/* @@@ label3 Error TypeError: Can't resolve array type */ -/* @@@ label4 Error TypeError: Can't resolve array type */ -/* @@@ label5 Error TypeError: Can't resolve array type */ -/* @@@ label6 Error TypeError: Can't resolve array type */ -/* @@@ label7 Error TypeError: Can't resolve array type */ -/* @@@ label8 Error TypeError: Can't resolve array type */ +/* @@@ label1 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label2 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label3 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label4 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label5 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label6 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label7 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label8 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets index 8016318281..2a4873de74 100644 --- a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets +++ b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets @@ -16,4 +16,4 @@ let tuple: [string,number] = /* @@ label */[] -/* @@@ label Error TypeError: Initializer has 0 elements, but tuple requires 2 */ +/* @@? 17:5 Error Semantic error ESE0000: Type '[]' is not assignable to type '[string, number]'. */ diff --git a/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets b/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets index 456bb88409..8cfd04cc33 100644 --- a/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets +++ b/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets @@ -22,5 +22,5 @@ E = "0xd", } -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 22:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 22:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets b/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets index 6ee37e69b8..0a73a69c99 100644 --- a/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets +++ b/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets @@ -20,4 +20,4 @@ let a: int = E.FIRST - /* @@? 16:2 Error TypeError: Type 'Long' cannot be assigned to type 'Int' */ + /* @@? 16:2 Error Semantic error ESE0318: Type 'Long' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/enumConversions.ets b/ets2panda/test/ast/compiler/ets/enumConversions.ets index 353ca83e8f..d4fb887323 100644 --- a/ets2panda/test/ast/compiler/ets/enumConversions.ets +++ b/ets2panda/test/ast/compiler/ets/enumConversions.ets @@ -31,5 +31,5 @@ function foo(e: E, i: int) { // e = 10 // CTE, 10 is out of range } -/* @@? 26:7 Warning Warning: Enum cast is deprecated. Cast support from 'E' to 'Int' will be removed. */ -/* @@? 28:7 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'E' will be removed. */ +/* @@? 26:7 Warning Warning W0030: Enum cast is deprecated. Cast support from 'E' to 'Int' will be removed. */ +/* @@? 28:7 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'E' will be removed. */ diff --git a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets index ad4d7a36a4..3405bc8f93 100644 --- a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets +++ b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets @@ -22,5 +22,5 @@ function main() { arktest.assertEQ(TestEnum.One.valueOf(),101) } -/* @@? 20:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:22 Error TypeError: Unresolved reference TestEnum */ \ No newline at end of file +/* @@? 20:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference TestEnum */ diff --git a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets index 13c418b307..cb1748792b 100644 --- a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets +++ b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets @@ -38,15 +38,15 @@ function main() { } -/* @@? 19:29 Error TypeError: Cannot cast type 'Char' to 'Byte' */ -/* @@? 21:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:22 Error TypeError: Unresolved reference TestEnum1 */ -/* @@? 24:30 Error TypeError: Cannot cast type 'Char' to 'Short' */ -/* @@? 26:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 27:22 Error TypeError: Unresolved reference TestEnum2 */ -/* @@? 29:28 Error TypeError: Cannot cast type 'Char' to 'Int' */ -/* @@? 31:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 32:22 Error TypeError: Unresolved reference TestEnum3 */ -/* @@? 34:29 Error TypeError: Cannot cast type 'Char' to 'Long' */ -/* @@? 36:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 37:22 Error TypeError: Unresolved reference TestEnum4 */ +/* @@? 19:29 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Byte' */ +/* @@? 21:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference TestEnum1 */ +/* @@? 24:30 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Short' */ +/* @@? 26:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 27:22 Error Semantic error ESE0143: Unresolved reference TestEnum2 */ +/* @@? 29:28 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Int' */ +/* @@? 31:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 32:22 Error Semantic error ESE0143: Unresolved reference TestEnum3 */ +/* @@? 34:29 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Long' */ +/* @@? 36:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 37:22 Error Semantic error ESE0143: Unresolved reference TestEnum4 */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets index 724f1b214d..3fdece5e31 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets @@ -20,4 +20,4 @@ function test(): int{ return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets index f187202a42..95573959b4 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets @@ -20,4 +20,4 @@ function test0(): A { return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'A' */ +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets index 59b78a19fd..18bf34c03e 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets @@ -20,4 +20,4 @@ function test1(): A|null { return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'A|null' */ +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'A|null' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets index bbfa7a32ca..13d7de182e 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 d46422e571..a184451f84 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 8f7092c48b..fd16feb607 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets @@ -19,4 +19,4 @@ let g:((y:A) => A|null)|null = /* @@ label */(y:A): A| return y; } -/* @@@ label Error TypeError: Type '(y: A) => A|null' cannot be assigned to type '(y: A) => A|null|null' */ +/* @@@ label Error Semantic error ESE0318: Type '(y: A) => A|null' cannot be assigned to type '(y: A) => A|null|null' */ diff --git a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets index e4c7f8ebe1..2829d8317e 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 edd26e7c88..52ab94741f 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 befbfdddc9..3edd9653e3 100644 --- a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_3.ets +++ b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_3.ets @@ -18,4 +18,4 @@ function foo() { return x! } -/* @@? 18:12 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 18:12 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets index f26a5a9313..8d7b81f56d 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets @@ -23,6 +23,6 @@ get field(a: A): int /* @@ label1 */{ /* @@ label2 */set field() /* @@ label3 */{} -/* @@@ label1 Error SyntaxError: Extension Accessor must have a receiver. */ -/* @@@ label2 Error SyntaxError: Extension Setter can only have 2 parameters. */ -/* @@@ label3 Error SyntaxError: Extension Accessor must have a receiver. */ +/* @@@ label1 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ +/* @@@ label2 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ +/* @@@ label3 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets index c97f4b9e8b..5dac71e02c 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets @@ -28,5 +28,4 @@ set name/* @@ label */(this: B, n: string) { this.name_ = n; } -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0131: Function name with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets index c97f4b9e8b..5dac71e02c 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets @@ -28,5 +28,4 @@ set name/* @@ label */(this: B, n: string) { this.name_ = n; } -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0131: Function name with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets index 9f85bf3b5c..3b262c82dd 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets @@ -26,5 +26,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class B */ -/* @@@ label2 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class B */ +/* @@@ label1 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class B */ +/* @@@ label2 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets index 06b36a3401..62fe79d032 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets @@ -29,7 +29,7 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets index 3daffc27c8..a71fb83a09 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets @@ -32,5 +32,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets index 0eba306ba2..4e72df7bbb 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets @@ -32,5 +32,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets index cb8f0655bc..8eca2f8787 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets @@ -26,5 +26,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class A */ -/* @@@ label2 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class A */ +/* @@@ label1 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class A */ +/* @@@ label2 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets index 0538aa60f8..2d48d296e4 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets @@ -35,5 +35,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets index dbb0ca95a9..e649b211ec 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets @@ -35,5 +35,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets index 26228dec04..0b208063a7 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets @@ -25,5 +25,5 @@ class A{ } -/* @@@ label1 Error SyntaxError: Extension Getter can only have 1 parameter. */ -/* @@@ label2 Error SyntaxError: Extension Setter can only have 2 parameters. */ +/* @@@ label1 Error Syntax error ESY0022: Extension Getter can only have 1 parameter. */ +/* @@@ label2 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets index f6fdb9f662..b00e46a863 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets @@ -18,4 +18,4 @@ class A{ } get /* @@ label */field(this: A){} -/* @@@ label Error TypeError: Getter must return a value */ +/* @@@ label Error Semantic error ESE0086: Getter must return a value */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets index 5b7b527bff..f645d59a76 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets @@ -32,6 +32,6 @@ function main() { console.log(/* @@ label3 */a.idx = 1) } -/* @@@ label1 Error TypeError: Extension getter in wrong usage */ -/* @@@ label2 Error TypeError: Extension getter in wrong usage */ -/* @@@ label3 Error TypeError: Extension getter in wrong usage */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0269: Extension getter in wrong usage */ +/* @@@ label2 Error Semantic error ESE0269: Extension getter in wrong usage */ +/* @@@ label3 Error Semantic error ESE0269: Extension getter in wrong usage */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets index c5047d1454..f6d45a9745 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets @@ -25,7 +25,7 @@ new A()./* @@ label2 */field += 1; new A()./* @@ label3 */field++; ++new A()./* @@ label4 */field; -/* @@@ label1 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label2 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label3 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label4 Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label1 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label2 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label3 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label4 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets index 228ae744cc..60a75e4567 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets @@ -33,7 +33,7 @@ new A()./* @@ label2 */field += 1; new A()./* @@ label3 */field++; ++new A()./* @@ label4 */field; -/* @@@ label1 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label2 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label3 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label4 Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label1 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label2 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label3 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label4 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets index 510aa86382..b1f3108487 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets @@ -21,4 +21,4 @@ class A{ return this.field_ } -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets index 97be18efb3..3728d7aac7 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets @@ -24,6 +24,6 @@ new A()./* @@ label1 */field++; new A()./* @@ label2 */field += 1; ++new A()./* @@ label3 */field; -/* @@@ label1 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label2 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label3 Error TypeError: Cannot read from this property because it is writeonly. */ +/* @@@ label1 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label2 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label3 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets index a93f3c5e61..08a7b12112 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets @@ -35,7 +35,7 @@ new A()./* @@ label2 */field += 1; new A().field = 1; /* @@ label4 */new A().field = 1.23 -/* @@@ label1 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label2 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label3 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label4 Error TypeError: Can't find the extension accessor. */ +/* @@@ label1 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label2 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label3 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label4 Error Semantic error ESE0246: Can't find the extension accessor. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_crash.ets b/ets2panda/test/ast/compiler/ets/extension_crash.ets index 4cea736a02..afa84fdd7b 100644 --- a/ets2panda/test/ast/compiler/ets/extension_crash.ets +++ b/ets2panda/test/ast/compiler/ets/extension_crash.ets @@ -20,9 +20,4 @@ class A { function foo(this: A) { } -/* @@? 17:8 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:13 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ')'. */ +/* @@? 17:13 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets index 5f973b3f44..7bd6e50dc9 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets @@ -17,5 +17,5 @@ function toString(this: double[]) /* @@ label */{ return "ext-func" } -/* @@? 16:49 Error TypeError: The extension function 'toString' has the same name with public method in class Array */ -/* @@? 16:49 Error TypeError: The extension function 'toString' has the same name with public method in class Object */ +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Array */ +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Object */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets index 50f2e2e3d6..95d5886d97 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets @@ -26,4 +26,4 @@ function main() { console.println(banana.name()); } -/* @@@ label Error TypeError: Property id is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property id is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets index 6e0fe6102b..df3b249688 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets @@ -28,5 +28,5 @@ function main() { console.println(banana.name()); } -/* @@@ label Error TypeError: Signature price(): Int is not visible here. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0139: Signature price(): Int is not visible here. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets index fb813f1d31..2e4c97575f 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets @@ -27,12 +27,12 @@ function main() { console.println(A./* @@ label */price(1)); } -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ -/* @@@ label Error TypeError: Property 'price' does not exist on type 'A' */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ +/* @@@ label Error Semantic error ESE0087: Property 'price' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets index ab7af4dedc..462a06b001 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets @@ -28,12 +28,12 @@ function main() { console.println(/* @@label */banana.name(2)); } -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ -/* @@? 28:34 Error TypeError: No matching call signature for name(Int) */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ +/* @@? 28:34 Error Semantic error ESE0127: No matching call signature for name(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets index 0b88f49865..38cd9a0236 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets @@ -25,4 +25,4 @@ function name(this: Fruit) { console.println("this is extension function 2"); } -/* @@@ label Error TypeError: Function name is already declared. */ +/* @@@ label Error Semantic error ESE0130: Function name is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets index 857aab9868..0fcc792aab 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets @@ -17,5 +17,5 @@ function name(this: /* @@label */Fruit): int { return 1; } -/* @@@ label Error TypeError: Cannot find type 'Fruit'. */ -/* @@? 16:1 Error TypeError: Extension function can only defined for class, interface or array. */ +/* @@? 16:1 Error Semantic error ESE0082: Extension function can only defined for class, interface or array. */ +/* @@? 16:34 Error Semantic error ESE0371: Cannot find type 'Fruit'. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets index 2e8df50de7..1aa2e5c8ad 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets @@ -39,6 +39,6 @@ function main() { asMethodCall(); } -/* @@? 30:5 Error TypeError: Expected 2 arguments, got 3. */ -/* @@? 30:5 Error TypeError: No matching call signature for foo(Fruit, Double, Double) */ -/* @@? 34:5 Error TypeError: No matching call signature for foo(Double, Double) */ +/* @@? 30:5 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@? 30:5 Error Semantic error ESE0127: No matching call signature for foo(Fruit, Double, Double) */ +/* @@? 34:5 Error Semantic error ESE0127: No matching call signature for foo(Double, Double) */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets index b0659282cd..01b3c92183 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets @@ -19,4 +19,4 @@ enum Fruit { size = 4 }; return 1; } -/* @@@ label Error TypeError: Extension function can only defined for class, interface or array. */ +/* @@? 18:14 Error Semantic error ESE0082: Extension function can only defined for class, interface or array. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets index 8edd9cf10c..faf3bd4b34 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets @@ -17,4 +17,4 @@ class Fruit {} function price(this/* @@label */) {} -/* @@@ label Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 18:33 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets index a548876f98..8b4dc235a5 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets @@ -17,4 +17,4 @@ class Fruit {} function price(a: number, this: Fruit/* @@label */) {} -/* @@@ label Error SyntaxError: Function Parameter 'this' must be the first. */ +/* @@? 18:51 Error Syntax error ESY0158: Function Parameter 'this' must be the first. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets index ec9bcf5d75..0ec237751f 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets @@ -17,4 +17,4 @@ return 1.2; } -/* @@? 16:52 Error TypeError: The extension accessor or extension function 'value' has the same name with field of class Double */ +/* @@? 16:52 Error Semantic error ESE0079: The extension accessor or extension function 'value' has the same name with field of class Double */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets index 1c4439bcc7..6c86933966 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets @@ -21,4 +21,4 @@ function foo(this: B): this { return /* @@ label */2; } -/* @@@ label Error TypeError: Type 'Int' is not compatible with the enclosing method's return type 'B' */ +/* @@@ label Error Semantic error ESE0091: Type 'Int' is not compatible with the enclosing method's return type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets index e0e2bf5db7..747d12e5e7 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets @@ -20,5 +20,5 @@ function f1(this : B): /* @@ label*/this[] { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'Array' */ +/* @@? 19:37 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'Array' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets index ea19f50512..a9be8cce09 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets @@ -20,5 +20,5 @@ function f1(this : B): B | A { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'B|A' */ +/* @@? 19:44 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'B|A' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets index c3776e2b05..81e87f9dab 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets @@ -19,6 +19,6 @@ class B {} function f1(this : B): /* @@ label*/this | A { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:37 Error TypeError: A 'this' cannot be used as a part of union type. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'ETSGLOBAL|A' */ +/* @@? 19:37 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:37 Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'ETSGLOBAL|A' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets index 05f1930cee..fd4212db3e 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets @@ -18,5 +18,5 @@ class B {} function f1(this : B): /* @@ label*/this | B { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 18:37 Error TypeError: A 'this' cannot be used as a part of union type. */ +/* @@? 18:37 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 18:37 Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets index 404e72c9c8..064b2c52e1 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets @@ -20,6 +20,6 @@ function f1(this : B): A | /* @@ label*/this { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:41 Error TypeError: A 'this' cannot be used as a part of union type. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'A|ETSGLOBAL' */ +/* @@? 19:41 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:41 Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'A|ETSGLOBAL' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets index 75fdf1d909..01d0281851 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets @@ -33,4 +33,4 @@ function foo(this:Banana, id2: int, k2: String): int/* @@ label */{ return 2; } -/* @@@ label Error TypeError: The extension function 'foo' has the same name with public method in class Yellow */ +/* @@@ label Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class Yellow */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets index bb32798a7a..686d9e25ab 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets @@ -46,5 +46,5 @@ function price(this:B) /* @@label2 */{ function xxx(this:A, id: int) { } -/* @@@ label1 Error TypeError: The extension function 'sweetness1' has the same name with public method in class B */ -/* @@@ label2 Error TypeError: The extension function 'price' has the same name with public method in class B */ +/* @@? 40:56 Error Semantic error ESE0081: The extension function 'sweetness1' has the same name with public method in class B */ +/* @@? 43:38 Error Semantic error ESE0081: The extension function 'price' has the same name with public method in class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets index 2e14e4f388..f62aff1f3f 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets @@ -25,4 +25,4 @@ function name(this: Fruit) { console.println("this is normal function"); } -/* @@@ label Error TypeError: Function name is already declared. */ +/* @@@ label Error Semantic error ESE0130: Function name is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets index 15efd392f6..3e032259f0 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets @@ -30,4 +30,4 @@ function main() { banana./* @@ label */price(); } -/* @@@ label Error TypeError: Property 'price' does not exist on type 'Banana' */ +/* @@@ label Error Semantic error ESE0087: Property 'price' does not exist on type 'Banana' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets index 7f0a2c4889..3b6b4f0d57 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets @@ -20,4 +20,4 @@ class Banana { } -/* @@@ label Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ +/* @@@ label Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets index 4b2ca22d22..e8f85e11cc 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets @@ -42,11 +42,11 @@ function main() { a.foo(true); } -/* @@@ label Error TypeError: Signature fooPrivate(x: String): void is not visible here. */ -/* @@@ label Error TypeError: No matching call signature for fooPrivate("abc") */ -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'Boolean' at index 1 */ -/* @@@ label2 Error TypeError: Signature fooPrivate(x: String): void is not visible here. */ -/* @@@ label2 Error TypeError: No matching call signature for foo("abc") */ -/* @@@ label3 Error TypeError: Signature fooProtected(x: Double): void is not visible here. */ -/* @@@ label3 Error TypeError: No matching call signature for foo(Int) */ +/* @@@ label Error Semantic error ESE0139: Signature fooPrivate(x: String): void is not visible here. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for fooPrivate("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Boolean' at index 1 */ +/* @@@ label2 Error Semantic error ESE0139: Signature fooPrivate(x: String): void is not visible here. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label3 Error Semantic error ESE0139: Signature fooProtected(x: Double): void is not visible here. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets index 8c7362de22..0a167f9a9c 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets @@ -31,6 +31,6 @@ class Test3 { abstract overload foo{ foo1, foo2 } } -/* @@? 19:21 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ -/* @@? 25:23 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ -/* @@? 31:23 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 19:21 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 25:23 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 31:23 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets index 7e8ca5089a..3d2f0bccc8 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets @@ -35,5 +35,5 @@ function main(){ a.foo111([123,123,123]); } -/* @@? 32:5 Error TypeError: No matching call signature for foo111(Array) */ -/* @@? 33:5 Error TypeError: No matching call signature for foo111(Array) */ +/* @@? 32:5 Error Semantic error ESE0127: No matching call signature for foo111(Array) */ +/* @@? 33:5 Error Semantic error ESE0127: No matching call signature for foo111(Array) */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets index db1517374c..880063b0af 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets @@ -46,7 +46,7 @@ class Test5{ /* @@ label3 */overload constructor{con1} } -/* @@@ label1 Error TypeError: Function con1 is already declared. */ -/* @@@ label2 Error TypeError: The overloaded name 'constructor' can't refer to a function with overload signatures. */ -/* @@@ label2 Error TypeError: The overloaded name 'con1' can't refer to a function with overload signatures. */ -/* @@@ label3 Error TypeError: The overloaded name 'constructor' can't refer to a function with overload signatures. */ +/* @@@ label1 Error Semantic error ESE0130: Function con1 is already declared. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'constructor' can't refer to a function with overload signatures. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'con1' can't refer to a function with overload signatures. */ +/* @@@ label3 Error Semantic error ESE0389: The overloaded name 'constructor' can't refer to a function with overload signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets index 8f7d7c607a..ca1f8e4fc3 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets @@ -19,15 +19,15 @@ class Test { overload: foo{ foo1, foo2 } } -/* @@? 19:13 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 19:15 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:15 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 19:18 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:20 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 19:24 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:24 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:26 Error TypeError: Variable 'foo2' has already been declared. */ -/* @@? 19:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 19:13 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 19:15 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:15 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:18 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:20 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 19:24 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:26 Error Semantic error ESE0351: Variable 'foo2' has already been declared. */ +/* @@? 19:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets index 63be2fcf48..d38d6e4da8 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets @@ -19,13 +19,13 @@ class Base { overload foo(foo1, foo2) } -/* @@? 19:17 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:17 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 19:18 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 19:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:22 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:24 Error TypeError: Variable 'foo2' has already been declared. */ -/* @@? 19:28 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:28 Error SyntaxError: Unexpected token ')'. */ +/* @@? 19:17 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:17 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:18 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 19:18 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 19:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:22 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:24 Error Semantic error ESE0351: Variable 'foo2' has already been declared. */ +/* @@? 19:28 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:28 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets index c6e43822e8..bd1341f114 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets @@ -19,7 +19,7 @@ class Base { overload { foo1, foo2 } } -/* @@? 19:14 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error TypeError: overloaded name must refer to an accessible method. */ +/* @@? 19:14 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 19:16 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets index a3d50ec721..46ec5f00f1 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets @@ -19,5 +19,5 @@ class Base { overload foo{ fo, fo2 } } -/* @@? 19:19 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:23 Error TypeError: overloaded name must refer to an accessible method. */ +/* @@? 19:19 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:23 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets index c7a80816f0..f8c01816d7 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets @@ -15,9 +15,8 @@ overload foo{ foo.,T,} -/* @@? 16:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:19 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 16:20 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:20 Error TypeError: Unresolved reference T */ -/* @@? 16:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:22 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'foo'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets index 090aa4c25a..9d2702788b 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets @@ -15,10 +15,10 @@ overload * you thMMMMMMMMdSTICKER, -/* @@? 16:10 Error SyntaxError: Identifier expected, got '*'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:12 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 16:16 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:16 Error TypeError: Unresolved reference thMMMMMMMMdSTICKER */ -/* @@? 16:34 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:10 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 16:12 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 16:12 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:12 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 16:16 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:16 Error Semantic error ESE0143: Unresolved reference thMMMMMMMMdSTICKER */ +/* @@? 16:34 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets index a9f652b9de..6e8cedce09 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets @@ -17,10 +17,10 @@ class A{ overload * you thMMMMMMMMdSTICKER, } -/* @@? 17:14 Error SyntaxError: Identifier expected, got '*'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:16 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:38 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:38 Error SyntaxError: Unexpected token ','. */ +/* @@? 17:14 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 17:16 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 17:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:16 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:38 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets index 597ad29e1a..4239814a05 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets @@ -27,25 +27,25 @@ function main(){ a.foo111(["abc","abc",1]); } -/* @@? 21:20 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 21:20 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 21:20 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 21:21 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 21:21 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 21:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:25 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:35 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:35 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 22:20 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 22:21 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 22:21 Error TypeError: Unresolved reference foo1 */ -/* @@? 22:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:26 Error SyntaxError: Unexpected token 'foo2'. */ -/* @@? 22:26 Error TypeError: Unresolved reference foo2 */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 23:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 21:20 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 21:20 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 21:20 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 21:21 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 21:21 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 21:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:25 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:35 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:35 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:20 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 22:20 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 22:20 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 22:21 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 22:21 Error Semantic error ESE0143: Unresolved reference foo1 */ +/* @@? 22:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:26 Error Syntax error ESY0227: Unexpected token 'foo2'. */ +/* @@? 22:26 Error Semantic error ESE0143: Unresolved reference foo2 */ +/* @@? 22:30 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets index 9e6faafbe0..2032f9ab95 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets @@ -33,5 +33,5 @@ function main() { a.foo111(new A(), new A(), new A()) } -/* @@? 27:34 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 27:40 Error TypeError: overloaded name must refer to an accessible method. */ +/* @@? 27:34 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 27:40 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets b/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets index 1c3ba11c80..b22a794c25 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets @@ -25,5 +25,5 @@ class Base2 { async overload foo {fooNumber, /* @@ label2 */fooString } } -/* @@@ label1 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label2 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label1 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label2 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets b/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets index 28ab388f03..34bda2525a 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets @@ -25,7 +25,7 @@ class Base2 { static overload foo {fooNumber, /* @@ label2 */fooString } } -/* @@@ label1 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label1 Error TypeError: Static property 'fooNumber' must be accessed through it's class 'Base1' */ -/* @@@ label2 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label2 Error TypeError: Property 'fooString' must be accessed through 'this' */ +/* @@@ label1 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label1 Error Semantic error ESE0173: Static property 'fooNumber' must be accessed through it's class 'Base1' */ +/* @@@ label2 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label2 Error Semantic error ESE0145: Property 'fooString' must be accessed through 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets index 562555e43f..2113aafc65 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets @@ -61,12 +61,12 @@ function main(){ NS.overloadfoo3("abc"); } -/* @@? 49:8 Error TypeError: 'foo1' is not exported in 'NS' */ -/* @@? 50:8 Error TypeError: 'foo2' is not exported in 'NS' */ -/* @@? 52:8 Error TypeError: 'foo4' is not exported in 'NS' */ -/* @@? 54:5 Error TypeError: 'foo1' is not exported in 'NS' */ -/* @@? 55:5 Error TypeError: 'foo2' is not exported in 'NS' */ -/* @@? 58:5 Error TypeError: 'foo4' is not exported in 'NS' */ -/* @@? 60:8 Error TypeError: 'overloadfoo3' is not exported in 'NS' */ -/* @@? 61:5 Error TypeError: 'foo6' is not exported in 'NS' */ -/* @@? 61:8 Error TypeError: 'overloadfoo3' is not exported in 'NS' */ +/* @@? 49:8 Error Semantic error ESE0206: 'foo1' is not exported in 'NS' */ +/* @@? 50:8 Error Semantic error ESE0206: 'foo2' is not exported in 'NS' */ +/* @@? 52:8 Error Semantic error ESE0206: 'foo4' is not exported in 'NS' */ +/* @@? 54:5 Error Semantic error ESE0206: 'foo1' is not exported in 'NS' */ +/* @@? 55:5 Error Semantic error ESE0206: 'foo2' is not exported in 'NS' */ +/* @@? 58:5 Error Semantic error ESE0206: 'foo4' is not exported in 'NS' */ +/* @@? 60:8 Error Semantic error ESE0206: 'overloadfoo3' is not exported in 'NS' */ +/* @@? 61:5 Error Semantic error ESE0206: 'foo6' is not exported in 'NS' */ +/* @@? 61:8 Error Semantic error ESE0206: 'overloadfoo3' is not exported in 'NS' */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/override.ets b/ets2panda/test/ast/compiler/ets/first_match/override.ets index 2bb8873b99..34a0f9f102 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/override.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/override.ets @@ -36,4 +36,4 @@ class Sub2 extends Base{ overload foo{fooInt,fooNumber} } -/* @@? 32:20 Error TypeError: Cannot inherit from class Base, because overload foo is inherited with a different declaration type */ +/* @@? 32:20 Error Semantic error ESE0216: Cannot inherit from class Base, because overload foo is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/same_name.ets b/ets2panda/test/ast/compiler/ets/first_match/same_name.ets index 22a1f98fa7..a56824d958 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/same_name.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/same_name.ets @@ -29,4 +29,4 @@ class D{ overload foo{fooString,fooBoolean} } -/* @@? 29:5 Error TypeError: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ +/* @@? 29:5 Error Semantic error ESE0397: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ diff --git a/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets b/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets index c9b2fb0cac..42c64e72f1 100644 --- a/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets +++ b/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets @@ -30,4 +30,4 @@ function main(): void { new A().foo(n) } -/* @@@ label Error TypeError: Cannot obtain iterator type in 'for-of' statement. */ +/* @@@ label Error Semantic error ESE0099: Cannot obtain iterator type in 'for-of' statement. */ diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets index b7caa0f3ff..16a2687fce 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */Partial { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets index b068fedca6..69d7125b10 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */Required { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets index b249acc301..c92281b8b8 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */Readonly { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets b/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets index e340e0579b..50d67f02ed 100644 --- a/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets +++ b/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets @@ -48,7 +48,6 @@ function main(): void { } -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface.*/ -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ - +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets b/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets index f513a77c6e..114e93da89 100644 --- a/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets +++ b/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets @@ -35,6 +35,6 @@ function main(): void { arktest.assertEQ(res, 6); } -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface.*/ -/* @@? 34:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 34:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 34:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 34:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets index 8952030938..73656873b6 100644 --- a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets +++ b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets @@ -27,5 +27,5 @@ function main(): int { return 0 } -/* @@? 23:17 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 23:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 23:17 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 23:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets index 0adcb03bf1..67f6967dde 100644 --- a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets +++ b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets @@ -31,7 +31,7 @@ function main(): int { return 0; } -/* @@? 17:3 Error SyntaxError: The special predefined method '$_iterator' should not have parameters. */ -/* @@? 17:13 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ -/* @@? 26:17 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 26:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0223: The special predefined method '$_iterator' should not have parameters. */ +/* @@? 17:13 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 26:17 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 26:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets b/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets index ff9986cb41..0f7d13184c 100644 --- a/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets +++ b/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets @@ -43,5 +43,5 @@ function main(): int { return 0 } -/* @@? 39:17 Error TypeError: '$_iterator' is a static property of 'C' */ -/* @@? 39:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 39:17 Error Semantic error ESE0207: '$_iterator' is a static property of 'C' */ +/* @@? 39:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/function_namespace.ets b/ets2panda/test/ast/compiler/ets/function_namespace.ets index 218177cc05..470658b01e 100644 --- a/ets2panda/test/ast/compiler/ets/function_namespace.ets +++ b/ets2panda/test/ast/compiler/ets/function_namespace.ets @@ -17,8 +17,8 @@ function main () { export namespace taskpool { function taskfinished(task:Task) : boolean {} -/* @@? 17:1 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 17:8 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 18:32 Error TypeError: Cannot find type 'Task'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token. */ -/* @@? 25:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 17:8 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:32 Error Semantic error ESE0371: Cannot find type 'Task'. */ +/* @@? 25:1 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/function_property.ets b/ets2panda/test/ast/compiler/ets/function_property.ets index e0ca994962..20b0822419 100644 --- a/ets2panda/test/ast/compiler/ets/function_property.ets +++ b/ets2panda/test/ast/compiler/ets/function_property.ets @@ -19,4 +19,4 @@ function readImage(path: string) { } return contents; } -/* @@@ label Error TypeError: Property 'sync' does not exist on type 'Function' */ +/* @@@ label Error Semantic error ESE0087: Property 'sync' does not exist on type 'Function' */ diff --git a/ets2panda/test/ast/compiler/ets/function_signature.ets b/ets2panda/test/ast/compiler/ets/function_signature.ets index 1a51660182..f7a4a98759 100644 --- a/ets2panda/test/ast/compiler/ets/function_signature.ets +++ b/ets2panda/test/ast/compiler/ets/function_signature.ets @@ -17,9 +17,9 @@ final class TypeCreateCtx { internal static native getObjectArrayForCCtor(ctxPtr: long): FixedArray must have only one type parameter. */ -/* @@? 17:88 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:88 Error SyntaxError: Unexpected token '>'. */ -/* @@? 17:97 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:120 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:138 Error TypeError: Cannot find type 'RuntimeTypeDescriptor'. */ +/* @@? 17:66 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 17:88 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:88 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 17:97 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:120 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:138 Error Semantic error ESE0371: Cannot find type 'RuntimeTypeDescriptor'. */ diff --git a/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets b/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets index 4c5b9c11ed..f849d9c397 100644 --- a/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets +++ b/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets @@ -19,4 +19,4 @@ class B extends A {} function main(): void { let x: (p: B) => B = /* @@ label */(p: A): A => { return new B() } } -/* @@@ label Error TypeError: Type '(p: A) => A' cannot be assigned to type '(p: B) => B' */ +/* @@@ label Error Semantic error ESE0318: Type '(p: A) => A' cannot be assigned to type '(p: B) => B' */ diff --git a/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets b/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets index a27238968e..f5efbf472c 100644 --- a/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets +++ b/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets @@ -19,4 +19,4 @@ class B extends A {} function main(): void { let x: (p: A) => A = /* @@ label */(p: B): B => { return new B() } } -/* @@@ label Error TypeError: Type '(p: B) => B' cannot be assigned to type '(p: A) => A' */ +/* @@@ label Error Semantic error ESE0318: Type '(p: B) => B' cannot be assigned to type '(p: A) => A' */ diff --git a/ets2panda/test/ast/compiler/ets/function_typeerror.ets b/ets2panda/test/ast/compiler/ets/function_typeerror.ets index 969d9217be..15f3daacf6 100644 --- a/ets2panda/test/ast/compiler/ets/function_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/function_typeerror.ets @@ -35,21 +35,21 @@ function main(): void { arktest.assertEQ(resultA, resultB); } -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:19 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:32 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 17:36 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:41 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:41 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:42 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:48 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:49 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 18:17 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 23:23 Error TypeError: Method methodOne(p: Derived): Base in Derived not overriding any method */ -/* @@? 32:21 Error TypeError: Property 'methodOne' does not exist on type 'Base' */ +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:19 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:32 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 17:36 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:41 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:48 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:49 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 18:17 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 23:23 Error Semantic error ESE0136: Method methodOne(p: Derived): Base in Derived not overriding any method */ +/* @@? 32:21 Error Semantic error ESE0087: Property 'methodOne' does not exist on type 'Base' */ diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets index c85cff638a..9ed7de16ca 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets @@ -28,9 +28,9 @@ class A { } -/* @@? 22:8 Error SyntaxError: Field type annotation expected. */ -/* @@? 23:9 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 23:16 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 23:20 Error SyntaxError: Unexpected token '.'. */ -/* @@? 23:43 Error SyntaxError: Field type annotation expected. */ -/* @@? 25:5 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 22:8 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 23:16 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 23:20 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 23:43 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 25:5 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets index 39746c2c66..ece199b90f 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets @@ -17,13 +17,13 @@ class D{ strB = (new StringBuilder).append('{ ').append(strB.toString()).append(' }') } -/* @@? 17:12 Error TypeError: Circular call function */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Boolean): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Byte): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Short): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Char): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Int): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Long): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Float): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Double): StringBuilder` */ -/* @@? 17:52 Error TypeError: Property 'strB' must be accessed through 'this' */ +/* @@? 17:12 Error Semantic error ESE0381: Circular call function */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Boolean): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Byte): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Short): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Char): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Int): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Long): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Float): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Double): StringBuilder` */ +/* @@? 17:52 Error Semantic error ESE0145: Property 'strB' must be accessed through 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets index 63fb0322b1..c85eb499d7 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets @@ -16,10 +16,10 @@ // the test case is from fuzzer. let callback = () => {for /* @@ label1 */aa !== /* @@ label2 */arr[idx]/* @@ label3 */) -/* @@@ label1 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@@ label1 Error TypeError: Unresolved reference aa */ -/* @@@ label2 Error TypeError: Unresolved reference arr */ -/* @@@ label2 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label3 Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ -/* @@? 26:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 26:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference aa */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference arr */ +/* @@@ label2 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label3 Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ +/* @@? 26:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 26:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets index 08bf93ddf6..722aa4d2f8 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets @@ -16,7 +16,7 @@ // the test case is from fuzzer. /* @@ label */fuzzz./* @@ label2 */@@/* @@ label3 */@@ -/* @@? 17:15 Error TypeError: Unresolved reference fuzzz */ -/* @@? 17:36 Error SyntaxError: There is no any node to insert at the placeholder position. */ -/* @@? 17:36 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 17:53 Error SyntaxError: Unexpected token '@@'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference fuzzz */ +/* @@@ label2 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '@@'. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets index eff6fa17ba..18d2d611ec 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets @@ -16,5 +16,5 @@ // the test case is from fuzzer. /* @@ label */i ??/* @@ label2 */@@ -/* @@@ label Error TypeError: Unresolved reference i */ -/* @@@ label2 Error SyntaxError: Unexpected token '@@'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference i */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '@@'. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets index f3b80f5acc..5420006806 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets @@ -14,11 +14,11 @@ */ // the test case is from fuzzer. -/* @@? 24:1 Error TypeError: Unresolved reference abcdefghijklmnopqrstuvwxyzABC */ -/* @@? 24:30 Error SyntaxError: Unexpected token '`'. */ -/* @@? 24:30 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:31 Error SyntaxError: Unterminated string. */ -/* @@? 24:31 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 24:31 Error SyntaxError: Unexpected token, expected '`'. */ +/* @@? 24:1 Error Semantic error ESE0143: Unresolved reference abcdefghijklmnopqrstuvwxyzABC */ +/* @@? 24:30 Error Syntax error ESY0227: Unexpected token '`'. */ +/* @@? 24:30 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 24:31 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 24:31 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 24:31 Error Syntax error ESY0228: Unexpected token, expected '`'. */ abcdefghijklmnopqrstuvwxyzABC`DEF\n� \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets index 93c9fbf39d..d0cd2b38b4 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets @@ -17,6 +17,6 @@ function foo() { new CC. } -/* @@? 17:9 Error TypeError: Cannot find type 'CC'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ -/* @@? 18:1 Error TypeError: Invalid type reference. */ +/* @@? 17:9 Error Semantic error ESE0371: Cannot find type 'CC'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:1 Error Semantic error ESE0299: Invalid type reference. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets index 34e6e9c60d..931413b83e 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 79c7af6977..006b61eb09 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets @@ -21,5 +21,5 @@ class B extends A implements inter { function foo1(b: Partial>) { } -/* @@? 18:20 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:20 Error TypeError: The super type of 'B' class is not extensible. */ +/* @@? 18:20 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:20 Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets index 11b245f328..ec987cf084 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets @@ -22,4 +22,4 @@ function main(): void { let b : Person ={name: /* @@ label */42, age:25} } -/* @@@ label Error TypeError: Type 'Int' is not compatible with type 'String' at property 'name' */ +/* @@@ label Error Semantic error ESE0319: Type 'Int' is not compatible with type 'String' at property 'name' */ diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets index d12d67284b..c5f220b14b 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets @@ -22,4 +22,4 @@ function main(): void { let b : Person/* @@ label */ ={name: "John", age:25} } -/* @@@ label Error TypeError: Type argument 'String' should be a subtype of 'Double'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'String' should be a subtype of 'Double'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets index fd7eed0b9e..259e84c7f3 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets @@ -22,5 +22,5 @@ function main(): void { let b : Person/* @@ label */ ={name: "John", age:/* @@ label1 */"25"} } -/* @@@ label Error TypeError: Type argument 'Double' should be a subtype of 'String'-constraint */ -/* @@@ label1 Error TypeError: Type '"25"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label Error Semantic error ESE0228: Type argument 'Double' should be a subtype of 'String'-constraint */ +/* @@@ label1 Error Semantic error ESE0319: Type '"25"' is not compatible with type 'Double' at property 'age' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_callback.ets b/ets2panda/test/ast/compiler/ets/generic_callback.ets index 92c4b7ad7e..e12ae1d028 100644 --- a/ets2panda/test/ast/compiler/ets/generic_callback.ets +++ b/ets2panda/test/ast/compiler/ets/generic_callback.ets @@ -18,11 +18,11 @@ } let x = [1, 2, 3].map(identity)[0]; -/* @@? 19:9 Error TypeError: No matching call signature for map((a: A) => A) */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:9 Error TypeError: No matching call signature for map((a: A) => A) */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ +/* @@? 19:9 Error Semantic error ESE0127: No matching call signature for map((a: A) => A) */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:9 Error Semantic error ESE0127: No matching call signature for map((a: A) => A) */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets index 1755972658..7cf7526e96 100644 --- a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets +++ b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets @@ -19,4 +19,4 @@ function main(): void { let i: /* @@ label */A = undefined; } -/* @@@ label Error TypeError: Type 'A' is generic but type argument were not provided. */ +/* @@@ label Error Semantic error ESE0170: Type 'A' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets index 049b1c7a37..f89e7d4343 100644 --- a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets @@ -20,4 +20,4 @@ function main(): void { arktest.assertEQ(i, undefined); } -/* @@@ label Error TypeError: Type 'A' is generic but type argument were not provided. */ +/* @@@ label Error Semantic error ESE0170: Type 'A' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets b/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets index e4a18c20be..ecc8bd38ae 100644 --- a/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets @@ -24,5 +24,5 @@ function main() : void { /* @@ label */fn(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'A' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for fn(B) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for fn(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'A' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets b/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets index e0688a9e7b..0a4d25f739 100644 --- a/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets +++ b/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets @@ -22,4 +22,4 @@ function main() { /* @@ label */fn() } -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets index 2ce7f0e30f..c3625891af 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets @@ -20,4 +20,4 @@ function main(): void { let a: my_type = new Int(); } -/* @@? 20:12 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ +/* @@? 20:12 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets index 2cbad3fcf1..0dbb020200 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets @@ -20,4 +20,4 @@ function main(): void { let a: my_type/* @@ label */ = new Int(); } -/* @@@ label Error TypeError: Type alias declaration is not generic, but type parameters were provided */ +/* @@@ label Error Semantic error ESE0156: Type alias declaration is not generic, but type parameters were provided */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets index a4cf992ba0..3c45fb337e 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets @@ -20,4 +20,4 @@ function main(): void { let a: my_type/* @@ label */ = new Int(); } -/* @@@ label Error TypeError: Expected at least 1 type arguments, but got 2. */ +/* @@@ label Error Semantic error ESE0274: Expected at least 1 type arguments, but got 2. */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets index 1905464507..250fedf8fc 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets @@ -22,4 +22,4 @@ function main(): void { let a: A/* @@ label */; } -/* @@@ label Error TypeError: Type argument 'B' should be a subtype of 'Comparable'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'B' should be a subtype of 'Comparable'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets index be03b15a71..1ecd07f101 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x1: A1 = /* @@ label */new A1() } -/* @@@ label Error TypeError: Type 'A1' cannot be assigned to type 'A1' */ +/* @@@ label Error Semantic error ESE0318: Type 'A1' cannot be assigned to type 'A1' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets index 827eee769a..6911c98a15 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x1: A2 = /* @@ label */new A2() } -/* @@@ label Error TypeError: Type 'A2' cannot be assigned to type 'A2' */ +/* @@@ label Error Semantic error ESE0318: Type 'A2' cannot be assigned to type 'A2' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets index 53bb2466a9..1005d7902f 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x2: A1 = /* @@ label */new A1() } -/* @@@ label Error TypeError: Type 'A1' cannot be assigned to type 'A1' */ +/* @@@ label Error Semantic error ESE0318: Type 'A1' cannot be assigned to type 'A1' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets index 51d455618c..ce9daa1e2c 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x4: A2 = /* @@ label */new A2() } -/* @@@ label Error TypeError: Type 'A2' cannot be assigned to type 'A2' */ +/* @@@ label Error Semantic error ESE0318: Type 'A2' cannot be assigned to type 'A2' */ diff --git a/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets b/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets index 5b39271b37..ff0ceb429e 100644 --- a/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets +++ b/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets @@ -19,4 +19,4 @@ function main() { foo(/* @@ label */(a: int, b: String, c: String): String => { return "XXX" }); } -/* @@@ label Error TypeError: Type '(a: Int, b: String, c: String) => String' is not compatible with type '(a: Int, b: String, c: Int) => String' at index 1 */ +/* @@@ label Error Semantic error ESE0046: Type '(a: Int, b: String, c: String) => String' is not compatible with type '(a: Int, b: String, c: Int) => String' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets index c8f046fedf..0b88634ec0 100644 --- a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets @@ -27,4 +27,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Constant expression required */ +/* @@@ label Error Semantic error ESE0163: Constant expression required */ diff --git a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets index 9aa95c9ad4..e6b10b4c51 100644 --- a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets @@ -25,4 +25,4 @@ function main(): void { a_B.value./* @@ label */unboxed(); } -/* @@@ label Error TypeError: Property 'unboxed' does not exist on type 'B' */ +/* @@@ label Error Semantic error ESE0087: Property 'unboxed' does not exist on type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets index 82dcc47f2a..34f098dd9a 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets @@ -27,4 +27,4 @@ function main() { let a: A = new A() } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets index 09d7a9ab24..ca0f05845c 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets @@ -34,4 +34,4 @@ function main() { let a: A = new A() } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets index f5dea30ef1..68b6e15dc7 100644 --- a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets +++ b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets @@ -16,7 +16,7 @@ let a: Array>>=2 let b: Array>=2 -/* @@? 16:21 Error SyntaxError: Unexpected token '>>='. */ -/* @@? 16:24 Error SyntaxError: Unexpected token '2'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '>='. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '2'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token '>>='. */ +/* @@? 16:24 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '>='. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '2'. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference1.ets b/ets2panda/test/ast/compiler/ets/identifierReference1.ets index 13df0cf58b..a2c42f3730 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference1.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference1.ets @@ -49,6 +49,6 @@ class A extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:33 Error TypeError: Overloaded method is used as value */ -/* @@? 47:12 Error TypeError: Property 'b' does not exist on type 'C' */ +/* @@? 16:33 Error Semantic error ESE0307: Overloaded method is used as value */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:12 Error Semantic error ESE0087: Property 'b' does not exist on type 'C' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference10.ets b/ets2panda/test/ast/compiler/ets/identifierReference10.ets index bb75765d53..8b1757634d 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference10.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference10.ets @@ -25,4 +25,4 @@ class A { } } -/* @@@ label Error TypeError: Type '"foo"' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '"foo"' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference11.ets b/ets2panda/test/ast/compiler/ets/identifierReference11.ets index 2d0de4caff..38884e8df9 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference11.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference11.ets @@ -23,4 +23,4 @@ class A { } } -/* @@@ label Error TypeError: Unresolved reference foo */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference foo */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference12.ets b/ets2panda/test/ast/compiler/ets/identifierReference12.ets index 1c34cf4214..0cfefd21b3 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference12.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference12.ets @@ -25,4 +25,4 @@ class A { } } -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference13.ets b/ets2panda/test/ast/compiler/ets/identifierReference13.ets index 2271863d17..2b6cfc2f86 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference13.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference13.ets @@ -25,4 +25,4 @@ class A { } } -/* @@? 24:13 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 24:13 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference15.ets b/ets2panda/test/ast/compiler/ets/identifierReference15.ets index 4a7f86a7cc..069a584d31 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference15.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference15.ets @@ -33,6 +33,6 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 31:7 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 31:7 Error TypeError: No matching call signature */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 31:7 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 31:7 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference16.ets b/ets2panda/test/ast/compiler/ets/identifierReference16.ets index aefc534f96..f4a6b76639 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference16.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference16.ets @@ -43,6 +43,6 @@ class A extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 41:7 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 41:7 Error TypeError: No matching call signature for foo(Int) */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 41:7 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 41:7 Error Semantic error ESE0127: No matching call signature for foo(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference2.ets b/ets2panda/test/ast/compiler/ets/identifierReference2.ets index 3ee1d57483..30446637f5 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference2.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference2.ets @@ -15,4 +15,4 @@ let a:(a: int, b: int) => void = max; -/* @@? 16:34 Error TypeError: Overloaded method is used as value */ +/* @@? 16:34 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference3.ets b/ets2panda/test/ast/compiler/ets/identifierReference3.ets index ddc353921b..085de5b56a 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference3.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference3.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: Type '"foo"' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '"foo"' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference5.ets b/ets2panda/test/ast/compiler/ets/identifierReference5.ets index 0bf9887799..3b20265aa2 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference5.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference5.ets @@ -32,4 +32,4 @@ class A extends B { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference6.ets b/ets2panda/test/ast/compiler/ets/identifierReference6.ets index 4220740313..e3b68be998 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference6.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference6.ets @@ -23,6 +23,6 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 21:7 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 21:12 Error TypeError: Property 'a' does not exist on type 'B' */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 21:7 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 21:12 Error Semantic error ESE0087: Property 'a' does not exist on type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference7.ets b/ets2panda/test/ast/compiler/ets/identifierReference7.ets index d2b4110f65..3ffd539a7f 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference7.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference7.ets @@ -27,5 +27,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 25:7 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 25:7 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference8.ets b/ets2panda/test/ast/compiler/ets/identifierReference8.ets index 0a7509f35b..63b69fe8ed 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference8.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference8.ets @@ -25,4 +25,4 @@ class A { } } -/* @@? 24:5 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 24:5 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference9.ets b/ets2panda/test/ast/compiler/ets/identifierReference9.ets index 3021ebf7a1..e3ea58dd1a 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference9.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference9.ets @@ -25,4 +25,4 @@ class A { } } -/* @@? 24:5 Error TypeError: Class methods cannot be overwritten. */ +/* @@? 24:5 Error Semantic error ESE0394: Class methods cannot be overwritten. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets index 88652992e4..3f62b62dd2 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets @@ -15,4 +15,4 @@ /* @@ label */package pack1; -/* @@? 1:1 Error SyntaxError: Files 'package_module_1_neg' and 'package_module_2_neg' are in the same folder, but have different package names. */ +/* @@? 1:1 Error Syntax error ESY0002: Files 'package_module_1_neg' and 'package_module_2_neg' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets index 55482b2196..ac02ce34a4 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets @@ -15,4 +15,4 @@ /* @@ label */package pack2; -/* @@? 1:1 Error SyntaxError: Files 'package_module_2_neg' and 'package_module_1_neg' are in the same folder, but have different package names. */ +/* @@? 1:1 Error Syntax error ESY0002: Files 'package_module_2_neg' and 'package_module_1_neg' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets index 60a86f221b..886e5de198 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets @@ -18,5 +18,5 @@ import {myvar} from "./package_module_2" // compiling this file will fail with import from it's own package -/* @@? 17:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 17:21 Error TypeError: Cannot find import: ./package_module_2 */ +/* @@? 17:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 17:21 Error Semantic error ESE0360: Cannot find import: ./package_module_2 */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets index 904df0697a..142620af41 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets @@ -17,8 +17,8 @@ package mypack; let myvar: number = wont_exist; -/* @@? package_module_2_neg.ets:22:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_2_neg.ets:22:1 Error TypeError: Unresolved reference syntax */ -/* @@? package_module_2_neg.ets:22:8 Error SyntaxError: Unexpected token 'error'. */ -/* @@? package_module_2_neg.ets:22:8 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_2_neg.ets:22:8 Error TypeError: Unresolved reference error */ +/* @@? package_module_2_neg.ets:22:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_2_neg.ets:22:1 Error Semantic error ESE0143: Unresolved reference syntax */ +/* @@? package_module_2_neg.ets:22:8 Error Syntax error ESY0227: Unexpected token 'error'. */ +/* @@? package_module_2_neg.ets:22:8 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_2_neg.ets:22:8 Error Semantic error ESE0143: Unresolved reference error */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets index 1ee3c41129..8b37730bc9 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets @@ -21,8 +21,8 @@ let wont_exist: number = 8; syntax error -/* @@? 22:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 22:1 Error TypeError: Unresolved reference syntax */ -/* @@? 22:8 Error SyntaxError: Unexpected token 'error'. */ -/* @@? 22:8 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 22:8 Error TypeError: Unresolved reference error */ +/* @@? 22:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 22:1 Error Semantic error ESE0143: Unresolved reference syntax */ +/* @@? 22:8 Error Syntax error ESY0227: Unexpected token 'error'. */ +/* @@? 22:8 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 22:8 Error Semantic error ESE0143: Unresolved reference error */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets index 810b288169..e06b5bf3d1 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets @@ -17,4 +17,4 @@ package mypackage; let myvar: number = exist_but_checker_fails_in_file; -/* @@? package_module_2.ets:19:39 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@? package_module_2.ets:19:39 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets index cf77170f19..2ec100eccd 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets @@ -18,4 +18,4 @@ package mypackage; let exist_but_checker_fails_in_file: number = 8; let wong_type: string = /* @@ label */9; -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets index 7671deb63c..00f77384f4 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets @@ -18,4 +18,4 @@ package mypackage; // Special additional empty line for another position of error in compare with package_module_2_neg.ets function foo(): void {} -/* @@? package_module_2_neg.ets:18:1 Error TypeError: Function foo is already declared. */ +/* @@? package_module_2_neg.ets:18:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets index 88592f7d18..804b900577 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets @@ -17,4 +17,4 @@ package mypackage; function foo(): void {} -/* @@? package_module_1_neg.ets:19:1 Error TypeError: Function foo is already declared. */ +/* @@? package_module_1_neg.ets:19:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets index de22e82f51..f84e9b9d92 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets @@ -20,7 +20,7 @@ import {myvar2} from "./package_module" export let a: String = "SubpackageA"; -/* @@? 18:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 18:21 Error TypeError: Cannot find import: ./package_module */ -/* @@? 19:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 19:22 Error TypeError: Cannot find import: ./package_module */ +/* @@? 18:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 18:21 Error Semantic error ESE0360: Cannot find import: ./package_module */ +/* @@? 19:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 19:22 Error Semantic error ESE0360: Cannot find import: ./package_module */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets index 3eaf30089d..9dec761727 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets @@ -17,14 +17,14 @@ package mypack; // That is the main file, from which we will compile full package -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets index ecb87c42d0..d5febd3268 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets @@ -17,14 +17,14 @@ package mypack; let a: int = "I am a number, I promise..."; -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets index 18341d2998..84f7577b9e 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets @@ -17,14 +17,14 @@ package mypack; =) -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets index bab0e7b0a5..b40ec45903 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets @@ -21,14 +21,14 @@ function foo(): Day { return new good Day(); } -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets index 3a8d9a4390..a08d9b8cb5 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets @@ -28,8 +28,8 @@ function main(i : string[], g : int): void { export default function TestFunc(): void {} export default function TestFuncToo(): void {} -/* @@? 20:10 Error TypeError: Main overload is not enabled */ -/* @@? 20:15 Error TypeError: Only 'FixedArray' type argument is allowed. */ -/* @@? 24:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: 0 or 1 argument are allowed */ -/* @@? 29:16 Error TypeError: Only one default export is allowed in a module */ +/* @@? 20:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 20:15 Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ +/* @@? 24:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ +/* @@? 29:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets index 3fed30fb92..69c560c5ee 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets index a1da533413..273c181102 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets index 5b0fa10162..c4765ccb12 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets index aa8c172b1f..70f7129161 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets index 38e266873e..0e45e43b6d 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets index 06251d9939..de19aa65ab 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets index 2aa03a66a4..b37e0c6f40 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets index 259a491d0a..3d2a773ae3 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets index 8350e64f91..228077491a 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets @@ -16,6 +16,6 @@ import * as ns from "./eitest_import_all_2_ne" const f: ns.qw.Root.Foo = {x:10} -/* @@? eitest_import_all_1_ne.ets:17:13 Error TypeError: 'qw' type does not exist. */ -/* @@? eitest_import_all_1_ne.ets:17:16 Error TypeError: 'Root' type does not exist. */ -/* @@? eitest_import_all_1_ne.ets:17:21 Error TypeError: 'Foo' type does not exist. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0070: 'qw' type does not exist. */ +/* @@? 17:16 Error Semantic error ESE0070: 'Root' type does not exist. */ +/* @@? 17:21 Error Semantic error ESE0070: 'Foo' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets index 57e068b6d1..c9d02fe26b 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets @@ -16,4 +16,4 @@ import * as ns from "./eitest_import_all_5_ne" const t: ns.B = new ns.B() -/* @@? eitest_import_all_4_ne.ets:17:13 Error TypeError: 'B' type does not exist. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0070: 'B' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets index da65463362..dd49a8e326 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :A = new A() } -/* @@? 16:17 Error TypeError: Use the default import syntax to import a default exported element */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets index 6758e4fdde..f8f1387527 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :B = new B() } -/* @@? 16:17 Error TypeError: Cannot find imported element 'B' */ -/* @@? 19:12 Error TypeError: Cannot find type 'B'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'B'. */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0356: Cannot find imported element 'B' */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'B'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'B'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets index 95df0589cc..3ceb444163 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :A = new A() } -/* @@? 16:17 Error TypeError: Use the default import syntax to import a default exported element */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets index a5e1725a38..2c9cad102d 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :CLASS_A = new CLASS_A() } -/* @@? 16:23 Error TypeError: Use the default import syntax to import a default exported element */ +/* @@? 16:23 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets b/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets index 048b836045..87ca670134 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets @@ -20,6 +20,7 @@ let bad1 : TEST.CallBack = () => { } let bad2 : TEST.A = new TEST.A() -/* @@? 19:12 Error TypeError: Type '"A"' is not compatible with the enclosing method's return type 'Int' */ -/* @@? 21:21 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 21:21 Error TypeError: No matching construct signature */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:18 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token './export'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets index fbf91a5f6d..4fb4726af0 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets @@ -24,10 +24,9 @@ export class A { let 1: number // First level import with both types of error -/* @@? import_1.ets:21:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_1.ets:24:5 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? import_1.ets:24:5 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_2.ets:17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_2.ets:20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ -// Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? import_1.ets:21:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets index ce4e0f0704..ab69efcb1b 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets @@ -20,6 +20,5 @@ export class B { var not_ok = false // Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ - +/* @@? 17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets index c7b79fc31d..3fa77e1a32 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets @@ -18,16 +18,14 @@ import {A, B} from "./import_1.ets" let b = new B(10); // First level import with both types of error -/* @@? import_1.ets:21:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_1.ets:24:5 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? import_1.ets:24:5 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_1.ets:21:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ // Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? import_2.ets:17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_2.ets:20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ // Error in main file based on class from the most distant file -/* @@? master_file.ets:18:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? master_file.ets:18:9 Error TypeError: No matching construct signature for import_2.B(Int) */ -/* @@? master_file.ets:18:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? master_file.ets:18:9 Error TypeError: No matching construct signature for import_2.B(Int) */ +/* @@? master_file.ets:18:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? master_file.ets:18:9 Error Semantic error ESE0127: No matching construct signature for import_2.B(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets index d7c0b1872b..6c93980ef6 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets @@ -19,15 +19,15 @@ import { notInit, importantInfo } from "./inner_package_with_errors" function bar(x: notInit) { (=_=) } -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ -/* @@? package_with_errors_2.ets:19:16 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ +/* @@? package_with_errors_2.ets:19:16 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets index fb0a7d4075..15a015b55e 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets @@ -21,5 +21,5 @@ export let importantInfo = "All good!" export const notInit ; -/* @@? distant_package.ets:22:14 Error SyntaxError: Missing initialization for const package property */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? 22:14 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets index 8ea80e1135..6a62e1bb86 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets @@ -18,15 +18,15 @@ package package_with_errors // "importantInfo" is imported in "import_in_package_with_error.ets" export let moreImportantInfo = importantInfo as number; -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_2.ets:19:16 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ +/* @@? package_with_errors_2.ets:19:16 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets index bd2e68d923..56f97d00b8 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets @@ -20,15 +20,15 @@ let newValue = foo(notInit) export notInit -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ -/* @@? package_with_errors_2.ets:19:16 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ +/* @@? package_with_errors_2.ets:19:16 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets index e7628a6a70..8beb17106c 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets @@ -17,4 +17,4 @@ namespace ns { import * as nsi from './export_file'; } -/* @@? 17:5 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:5 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets index e5dbc4c1f5..081c8ace4d 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets @@ -19,4 +19,4 @@ function main() { } } -/* @@? 18:9 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 18:9 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets index b57db80392..06133c2617 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets @@ -19,4 +19,4 @@ function main() { } } -/* @@? 18:9 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file +/* @@? 18:9 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets index 232dd176a1..cb2f2a10c8 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets @@ -15,4 +15,4 @@ import {/* @@ label */test_func} from "./selective_export_function" -/* @@@ label Error TypeError: Cannot find imported element 'test_func' */ +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'test_func' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets index 317a1ed4e0..46bde7435f 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets @@ -15,4 +15,4 @@ import {/* @@ label */InterfaceToAlias} from "./selective_export_interface"; -/* @@@ label Error TypeError: Cannot find imported element 'InterfaceToAlias' */ +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'InterfaceToAlias' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets index fec071802f..5b5ae30589 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets @@ -20,5 +20,5 @@ f2() let c1: a1 = new a1() let c2: a2 = new a2() -/* @@? 16:10 Error TypeError: Cannot find imported element 'foo' */ -/* @@? 16:23 Error TypeError: Cannot find imported element 'A' */ +/* @@? 16:10 Error Semantic error ESE0356: Cannot find imported element 'foo' */ +/* @@? 16:23 Error Semantic error ESE0356: Cannot find imported element 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets index b594028cb9..58c8e04db9 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets @@ -17,4 +17,4 @@ import * as all from "./selective_export" let test_var = new all.TestClass(); -/* @@? 18:24 Error TypeError: 'TestClass' type does not exist. */ +/* @@? 18:24 Error Semantic error ESE0070: 'TestClass' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets index b9e214dc37..9ec7a76e82 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets @@ -21,4 +21,4 @@ export { msg as foo } -/* @@? 21:10 Error SyntaxError: The given name 'foo' is already used in another export. */ +/* @@? 21:10 Error Syntax error ESY0281: The given name 'foo' is already used in another export. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets index 38dc700daf..5adbf232fe 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets @@ -21,4 +21,4 @@ export { msg as foo } -/* @@? 21:10 Error SyntaxError: The given name 'foo' is already used in another export. */ +/* @@? 21:10 Error Syntax error ESY0281: The given name 'foo' is already used in another export. */ diff --git a/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets b/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets index 9b7ecfe360..0f0c3e6bca 100644 --- a/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets +++ b/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets @@ -19,6 +19,7 @@ let a = new A(); class C implements B {}; let c = new C() -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@? 16:35 Error TypeError: Class 'C' is already defined. */ -/* @@? export_type.ets:1:1 Error TypeError: Function main is already declared. */ +/* @@? export_type.ets:1:1 Error Semantic error ESE0130: Function main is already declared. */ + +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'as'. */ +/* @@? import_type_with_invalid_syntax.ets:16:35 Error Semantic error ESE0349: Class 'C' is already defined. */ diff --git a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets index c4664c65f9..b2196c13dc 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets @@ -24,5 +24,5 @@ function bar(arr:number[]){ }) } -/* @@? 17:12 Error TypeError: No matching call signature for (T) */ -/* @@? 17:14 Error TypeError: Type 'T' is not compatible with type 'Array' at index 1 */ +/* @@? 17:12 Error Semantic error ESE0127: No matching call signature for (T) */ +/* @@? 17:14 Error Semantic error ESE0046: Type 'T' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets index d886e32944..2d1e71d087 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets @@ -18,8 +18,8 @@ a[0] = 1 a[1] = "1" let b = a[0] + a[1] -/* @@? 16:9 Error TypeError: Can't resolve array type */ -/* @@? 17:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 18:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:16 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 16:9 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 17:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 18:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:16 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets index c8400f2b11..f3ba012be1 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets @@ -16,6 +16,6 @@ let a = [1, 2, 3] a[0] = /* @@ label */"1" -/* @@? 17:1 Error TypeError: No matching indexing signature for $_set(Int, "1") */ -/* @@? 17:3 Error TypeError: Cannot find index access method with the required signature. */ -/* @@? 17:22 Error TypeError: Type '"1"' is not compatible with type 'Double' at index 2 */ +/* @@? 17:1 Error Semantic error ESE0127: No matching indexing signature for $_set(Int, "1") */ +/* @@? 17:3 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ +/* @@@ label Error Semantic error ESE0046: Type '"1"' is not compatible with type 'Double' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets index ceb44b333e..4593fa23c5 100644 --- a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets +++ b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets @@ -17,9 +17,9 @@ export const floatInf: float = /* @@ label2 */1.0 / 0.0 export const byteInf: byte = /* @@ label */1.0 / 0.0 export const shortInf: short = /* @@ label1 */1.0 / 0.0 -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'Byte' */ -/* @@@ label1 Error TypeError: Type 'Double' cannot be assigned to type 'Short' */ -/* @@@ label2 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label2 Error TypeError: Value is out of range */ -/* @@@ label1 Error TypeError: Floating-point value cannot be converted */ -/* @@@ label Error TypeError: Floating-point value cannot be converted */ +/* @@@ label2 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label2 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0344: Floating-point value cannot be converted */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Byte' */ +/* @@@ label1 Error Semantic error ESE0344: Floating-point value cannot be converted */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Short' */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets index 683b62432d..71361d1aad 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets @@ -17,4 +17,4 @@ function foo() { /* @@ label */initModule('./module_to_init.ets') } -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets index 7887e38abf..3774470e76 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets @@ -18,4 +18,4 @@ class A { /* @@ label */initModule('./module_to_init.ets') -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets index 18a7108e93..94c64e95db 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets @@ -16,4 +16,4 @@ let b = 1 /* @@ label */initModule('./module_to_init.ets') -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets index e9d9ffd119..ac364fd148 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets @@ -15,4 +15,4 @@ /* @@ label */initModule(1) -/* @@@ label Error SyntaxError: initModule() only accept string literal as argument. */ +/* @@@ label Error Syntax error ESY0321: initModule() only accept string literal as argument. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets index 5bf4e846f0..015a7a2f61 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets @@ -15,5 +15,5 @@ initModule( -/* @@? 16:1 Error SyntaxError: initModule() only accept string literal as argument. */ -/* @@? 20:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 16:1 Error Syntax error ESY0321: initModule() only accept string literal as argument. */ +/* @@? 20:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets index 3bc35e5a51..98a837310d 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets @@ -15,6 +15,6 @@ initModule) -/* @@? 16:11 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 21:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected ')'. */ +/* @@? 16:11 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets index f91b70836f..f04d113d77 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets @@ -15,4 +15,4 @@ /* @@ label */initmodule('./module_to_init.ets') -/* @@@ label Error TypeError: Unresolved reference initmodule */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference initmodule */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets index 20adc6d8ff..28da5f6296 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets @@ -15,4 +15,4 @@ initModule() -/* @@? 16:1 Error SyntaxError: initModule() only accept string literal as argument. */ +/* @@? 16:1 Error Syntax error ESY0321: initModule() only accept string literal as argument. */ diff --git a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets index 630cd8cdfc..6ce56e0421 100644 --- a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets +++ b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets @@ -23,8 +23,6 @@ export namespace xml { } } -/* @@? 17:3 Error SyntaxError: Unexpected token 'static'. */ -/* @@? 17:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 17:13 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:13 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 20:3 Error SyntaxError: Only one static block is allowed in one namespace or class. */ +/* @@? 17:3 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 19:3 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 22:3 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets index 9d2fef2044..775b38fb5c 100644 --- a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets +++ b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets @@ -23,14 +23,14 @@ function fn(i: I) { return new i("hello") } -/* @@? 19:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:5 Error SyntaxError: Constructor signatures are not supported in interfaces, use methods instead! */ -/* @@? 19:10 Error TypeError: Cannot find type 's'. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:19 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 19:20 Error SyntaxError: Invalid Type. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 20:1 Error SyntaxError: Invalid Type. */ -/* @@? 23:16 Error TypeError: Cannot find type 'i'. */ +/* @@? 19:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:5 Error Syntax error ESY81515: Constructor signatures are not supported in interfaces, use methods instead! */ +/* @@? 19:10 Error Semantic error ESE0371: Cannot find type 's'. */ +/* @@? 19:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:11 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:19 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 19:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 19:20 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:20 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 20:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:16 Error Semantic error ESE0371: Cannot find type 'i'. */ diff --git a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets index 2d32350377..a7e0f46b19 100644 --- a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets +++ b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets @@ -23,4 +23,4 @@ class B implements A /* @@ label */{ } } -/* @@@ label Error TypeError: B is not abstract and does not override abstract method foo(): void in A */ +/* @@@ label Error Semantic error ESE0190: B is not abstract and does not override abstract method foo(): void in A */ diff --git a/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets b/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets index f2a2037d53..2dcd406484 100644 --- a/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets +++ b/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets @@ -16,7 +16,7 @@ declare interface A { (arg :string) string } -/* @@? 17:7 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:3 Error SyntaxError: Identifier expected. */ \ No newline at end of file +/* @@? 17:7 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:21 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:3 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets index 41591ce408..db5dcc52a5 100644 --- a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets +++ b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets @@ -20,4 +20,4 @@ class A implements AA{ static X :int=1; } -/* @@? 19:22 Error TypeError: A is not abstract and does not implement getter for X property in AA */ +/* @@? 17:8 Error Semantic error ESE0000: Cannot find name int */ diff --git a/ets2panda/test/ast/compiler/ets/interface_partial.ets b/ets2panda/test/ast/compiler/ets/interface_partial.ets index f3f836c47b..29fc2ebb82 100644 --- a/ets2panda/test/ast/compiler/ets/interface_partial.ets +++ b/ets2panda/test/ast/compiler/ets/interface_partial.ets @@ -30,11 +30,11 @@ function main() { foo(break.var_one); } -/* @@? 18:1 Error SyntaxError: Invalid Type. */ -/* @@? 21:13 Error TypeError: Property 'var_one' does not exist on type 'I$partial' */ -/* @@? 22:13 Error TypeError: Property 'var_one' does not exist on type 'I$partial' */ -/* @@? 27:18 Error TypeError: type I has no property named var_one */ -/* @@? 28:11 Error TypeError: Property 'var_one' does not exist on type 'I' */ -/* @@? 29:9 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 29:18 Error TypeError: type I has no property named var_two */ -/* @@? 30:9 Error SyntaxError: Unexpected token 'break'. */ \ No newline at end of file +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:13 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I$partial' */ +/* @@? 22:13 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I$partial' */ +/* @@? 27:18 Error Semantic error ESE0065: type I has no property named var_one */ +/* @@? 28:11 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I' */ +/* @@? 29:9 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 29:18 Error Semantic error ESE0065: type I has no property named var_two */ +/* @@? 30:9 Error Syntax error ESY0227: Unexpected token 'break'. */ diff --git a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets index 0c8647af1e..5399e5870a 100644 --- a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets +++ b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets @@ -18,10 +18,4 @@ interface itf0{ @Anno(()=> {testList.subArrayList(0, 1)}, exceptionCherckEmptyContainer) } -/* @@? 16:2 Error TypeError: Cannot find type 'Anno'. */ -/* @@? 18:6 Error TypeError: Cannot find type 'Anno'. */ -/* @@? 18:11 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 18:45 Error SyntaxError: Expected ')', got ','. */ -/* @@? 18:45 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:76 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 19:1 Error SyntaxError: Invalid Type. */ +/* @@? 18:5 Error Syntax error ESY0000: Decorators are not allowed here */ diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets index 260287ee8b..e501fa8909 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets @@ -34,5 +34,5 @@ function main(): void { arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets index 75c6af1ac9..5de44b0196 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets @@ -34,5 +34,5 @@ function main(): void { arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets index 4a53c7b860..6aea8463a5 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets @@ -23,4 +23,4 @@ class B extends /* @@ label */A { } } -/* @@@ label Error TypeError: Cannot inherit from class A, because method a is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because method a is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets index c3f4fde638..de88e128df 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets @@ -26,5 +26,5 @@ class C extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 23:17 Error TypeError: Cannot inherit from class B, because class a is inherited with a different declaration type */ +/* @@? 23:17 Error Semantic error ESE0216: Cannot inherit from class B, because class a is inherited with a different declaration type */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets index dad9d78408..8a743df691 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */A { name(): int {} } -/* @@@ label Error TypeError: Cannot inherit from class A, because method name is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because method name is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets index 966bca830e..cc643ee0c7 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets @@ -30,5 +30,5 @@ function main(): void { let instance: B = new B(); arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class A, because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets index c406f86f39..12fb6a8fc3 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets @@ -30,5 +30,5 @@ function main(): void { let instance: B = new B(); arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from interface A because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface A because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets index 1dee731ac2..39c15ab9e4 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets index 1dee731ac2..39c15ab9e4 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets index 639026ee3f..391b571b8b 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets index 4150dacde6..6032463126 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets @@ -24,4 +24,4 @@ final class B { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets index dc02b67ec1..ff84e7686a 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets index dc02b67ec1..ff84e7686a 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets index c2c56037a8..41f879722c 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets index 07c477480d..7f548e4c03 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'B' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets index a4057a4135..10e5b55689 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets @@ -24,4 +24,4 @@ function main(): void { let a = klass./* @@ label */a; } -/* @@@ label Error TypeError: Property a is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets index f517470b8d..e5a04db473 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets @@ -25,5 +25,5 @@ function main(): void { let klass: Klass = new Klass(); } -/* @@? 25:24 Error TypeError: Signature constructor(): void is not visible here. */ -/* @@? 25:24 Error TypeError: No matching construct signature */ +/* @@? 25:24 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ +/* @@? 25:24 Error Semantic error ESE0128: No matching construct signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets index 511ee961f9..26c1239521 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets @@ -35,6 +35,6 @@ function main(): void { klass.foo(); } -/* @@? 35:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 35:5 Error TypeError: Signature foo(): void is not visible here. */ -/* @@? 35:5 Error TypeError: No matching call signature */ +/* @@? 35:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 35:5 Error Semantic error ESE0139: Signature foo(): void is not visible here. */ +/* @@? 35:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets index 575b66b453..b1fb68f6d0 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets @@ -23,5 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Class field 'a' defined by the parent class is not accessible in the child class via super. */ -/* @@@ label Error TypeError: Property a is not visible here. */ +/* @@@ label Error Semantic error ESE0377: Class field 'a' defined by the parent class is not accessible in the child class via super. */ +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets index 64d7e24678..b12f72aee1 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets @@ -27,9 +27,9 @@ class Outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 24:13 Error TypeError: Signature a(): void is not visible here. */ -/* @@? 24:13 Error TypeError: No matching call signature */ -/* @@? 25:13 Error TypeError: Signature a(): void is not visible here. */ -/* @@? 25:13 Error TypeError: No matching call signature */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 24:13 Error Semantic error ESE0139: Signature a(): void is not visible here. */ +/* @@? 24:13 Error Semantic error ESE0128: No matching call signature */ +/* @@? 25:13 Error Semantic error ESE0139: Signature a(): void is not visible here. */ +/* @@? 25:13 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets index 1dbd8709db..a677f7be4e 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets @@ -38,6 +38,6 @@ class D { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 37:11 Error TypeError: Property c is not visible here. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 37:11 Error Semantic error ESE0293: Property c is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets index a83be828c6..235ad96264 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets @@ -24,4 +24,4 @@ function main(): void { let a = klass./* @@ label */a; } -/* @@@ label Error TypeError: Property a is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets index e05cbd8ccd..50991ee617 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets @@ -25,5 +25,5 @@ function main(): void { let klass : Klass = new Klass(); } -/* @@? 25:25 Error TypeError: Signature constructor(): void is not visible here. */ -/* @@? 25:25 Error TypeError: No matching construct signature */ +/* @@? 25:25 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ +/* @@? 25:25 Error Semantic error ESE0128: No matching construct signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets index eeaa22daaa..efd87846c8 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets @@ -35,6 +35,6 @@ function main(): void { klass.foo(); } -/* @@? 35:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 35:5 Error TypeError: Signature foo(): void is not visible here. */ -/* @@? 35:5 Error TypeError: No matching call signature */ +/* @@? 35:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 35:5 Error Semantic error ESE0139: Signature foo(): void is not visible here. */ +/* @@? 35:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets index 14f2dbbba7..0e77c9dc09 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets @@ -17,11 +17,8 @@ class A{ private \\\\foo(){} } -/* @@? 17:13 Error SyntaxError: Invalid character. */ -/* @@? 17:13 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:14 Error SyntaxError: Invalid character. */ -/* @@? 17:14 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:15 Error SyntaxError: Invalid character. */ -/* @@? 17:15 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:16 Error SyntaxError: Invalid character. */ -/* @@? 17:16 Error SyntaxError: Access modifier must precede field and method modifiers. */ +/* @@? 17:13 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:14 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:14 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:15 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:16 Error Syntax error ESY0077: Invalid character. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets index 082a7347c6..f980b1d36f 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets @@ -16,5 +16,5 @@ class Integral {} class Numeric {} -/* @@? 1:3 Error TypeError: Class 'Integral' is already defined. */ -/* @@? 1:3 Error TypeError: Class 'Numeric' is already defined. */ +/* @@? 1:3 Error Semantic error ESE0349: Class 'Integral' is already defined. */ +/* @@? 1:3 Error Semantic error ESE0349: Class 'Numeric' is already defined. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets index 2f3707f2ac..2c87865fe2 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets @@ -23,5 +23,5 @@ namespace C{ } } -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 28:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets index c7941e4248..9fbb8baf0f 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets @@ -19,4 +19,4 @@ } } -/* @@@ label1 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ +/* @@@ label1 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_object.ets b/ets2panda/test/ast/compiler/ets/invalid_object.ets index 6d2e5fb2a1..1fcaae048f 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_object.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_object.ets @@ -18,11 +18,11 @@ const object1: Obj = {}; console.log(Objˆct.keys(object1)); -/* @@? 19:13 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 19:13 Error TypeError: Class or interface 'Obj' cannot be used as object */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 'ˆct'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error TypeError: Unresolved reference ˆct */ -/* @@? 19:33 Error SyntaxError: Unexpected token ')'. */ \ No newline at end of file +/* @@? 19:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 19:13 Error Semantic error ESE0294: Class or interface 'Obj' cannot be used as object */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 'ˆct'. */ +/* @@? 19:16 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Semantic error ESE0143: Unresolved reference ˆct */ +/* @@? 19:33 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets b/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets index c24f12ba16..df0ee7aa5c 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets @@ -18,11 +18,4 @@ class A { } } -/* @@? 17:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:21 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:23 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:25 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:21 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets index 0ef867033b..f61d4bb697 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets @@ -37,8 +37,8 @@ class Derived2 extends Base2{ } } -/* @@? 17:17 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 17:24 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 29:13 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 29:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 36:3 Error TypeError: Property 'my_func' must be accessed through 'this' */ +/* @@? 17:17 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 17:24 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 29:13 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 29:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 36:3 Error Semantic error ESE0145: Property 'my_func' must be accessed through 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets b/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets index 37691e5067..672a62fcf0 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets @@ -19,7 +19,7 @@ let a = foo() { } } -/* @@? 16:9 Error TypeError: Unresolved reference foo */ -/* @@? 16:9 Error TypeError: This expression is not callable. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'string literal', expected 'case' or 'default'. */ -/* @@? 18:9 Error SyntaxError: Expected ':', got 'string literal'. */ +/* @@? 16:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 16:9 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 18:9 Error Syntax error ESY0231: Unexpected token 'string literal', expected 'case' or 'default'. */ +/* @@? 18:9 Error Syntax error ESY0230: Expected ':', got 'string literal'. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets index f4850751e5..267cb475b7 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets @@ -20,6 +20,6 @@ const b = a.map(function (e) { return e * 2; }); -/* @@? 16:2 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:17 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:28 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:2 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:17 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:28 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets b/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets index 64cce0d8f4..feeed30d1a 100644 --- a/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets @@ -44,5 +44,5 @@ function main(): int { return 0; } -/* @@? 40:19 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 40:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 40:19 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 40:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets index 5edd48126e..3b5dc74cab 100644 --- a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets +++ b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets @@ -23,41 +23,41 @@ class ObservableImpl extends Observable { type NestedKey = T[K] extends object ? keyof T[K] : never; -/* @@? 16:24 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 16:42 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 16:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 18:33 Error TypeError: Cannot find type 'Observable'. */ -/* @@? 18:33 Error TypeError: The super type of 'ObservableImpl' class is not extensible. */ -/* @@? 20:24 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 20:27 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 20:31 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:41 Error SyntaxError: Unexpected token '&'. */ -/* @@? 20:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:41 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:44 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:45 Error SyntaxError: Unexpected token ']'. */ -/* @@? 20:46 Error SyntaxError: Unexpected token ':'. */ -/* @@? 20:48 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 20:51 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:51 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:51 Error SyntaxError: Unexpected token '&'. */ -/* @@? 20:54 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:54 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:56 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 20:57 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:36 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 24:42 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:42 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:43 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:45 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 24:53 Error SyntaxError: Unexpected token 'object'. */ -/* @@? 24:53 Error TypeError: Type name 'object' used in the wrong context */ -/* @@? 24:62 Error TypeError: Unresolved reference keyof */ -/* @@? 24:68 Error SyntaxError: Unexpected token. */ -/* @@? 24:68 Error TypeError: Unresolved reference T */ -/* @@? 24:68 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:70 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:73 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:75 Error SyntaxError: Class cannot be used as object. */ -/* @@? 24:75 Error SyntaxError: Unexpected token 'never'. */ +/* @@? 16:24 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:42 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 18:33 Error Semantic error ESE0371: Cannot find type 'Observable'. */ +/* @@? 18:33 Error Semantic error ESE0176: The super type of 'ObservableImpl' class is not extensible. */ +/* @@? 20:24 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 20:27 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 20:31 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:41 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:41 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 20:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:44 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:45 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 20:46 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 20:48 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 20:51 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:51 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:51 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 20:54 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:54 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:56 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 20:57 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:36 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 24:42 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:42 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:43 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:45 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 24:53 Error Syntax error ESY0227: Unexpected token 'object'. */ +/* @@? 24:53 Error Semantic error ESE0144: Type name 'object' used in the wrong context */ +/* @@? 24:62 Error Semantic error ESE0143: Unresolved reference keyof */ +/* @@? 24:68 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 24:68 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 24:68 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:70 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:73 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:75 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 24:75 Error Syntax error ESY0227: Unexpected token 'never'. */ diff --git a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets index a12fa1c5d2..38a788d3cc 100644 --- a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets +++ b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets @@ -17,5 +17,5 @@ declare namespace super { } -/* @@? 16:19 Error SyntaxError: Hard keyword 'super' cannot be used as identifier */ -/* @@? 16:19 Error SyntaxError: Identifier expected, got 'super'. */ +/* @@? 16:19 Error Syntax error ESY0316: Hard keyword 'super' cannot be used as identifier */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got 'super'. */ diff --git a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets index 4e6aabb12a..8913309ad7 100644 --- a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets +++ b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets @@ -17,5 +17,5 @@ declare namespace this { } -/* @@? 16:19 Error SyntaxError: Hard keyword 'this' cannot be used as identifier */ -/* @@? 16:19 Error SyntaxError: Identifier expected, got 'this'. */ +/* @@? 16:19 Error Syntax error ESY0316: Hard keyword 'this' cannot be used as identifier */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got 'this'. */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets index 3bb62aa9f2..ec9b5e11b8 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 30a62660c7..53252b0911 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets @@ -22,4 +22,4 @@ function main(): void { test1() } -/* @@@ label Error TypeError: Type 'String' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Semantic error ESE0091: Type 'String' is not compatible with the enclosing method's return type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets index 27787e59c7..db261e6675 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets @@ -19,4 +19,4 @@ function foo(): void { } } -/* @@@ label Error TypeError: Type '(b: Int) => void' cannot be assigned to type '(b: String) => void' */ +/* @@@ label Error Semantic error ESE0318: Type '(b: Int) => void' cannot be assigned to type '(b: String) => void' */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets index cf2c48260b..ff2b0f3e5e 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets index 259a8abf16..465a55d4c3 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets @@ -35,5 +35,5 @@ function main(): void { /* @@ label */a.foo(1)(1, /* @@ label1 */"foo"); } -/* @@@ label1 Error TypeError: Type '"foo"' is not compatible with type 'Int' at index 2 */ -/* @@@ label Error TypeError: No matching call signature for (Int, "foo") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for (Int, "foo") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"foo"' is not compatible with type 'Int' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_override.ets b/ets2panda/test/ast/compiler/ets/lambda_override.ets index f48a63238c..905733d84c 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_override.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_override.ets @@ -20,5 +20,5 @@ class bbb extends aaa { /* @@ label1 */x: ()=>string } -/* @@@ label Error TypeError: Property 'x' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'x' might not have been initialized. */ +/* @@@ label Error Semantic error ESE0280: Property 'x' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'x' might not have been initialized. */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets index 1a44914293..d9f776101c 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets @@ -17,4 +17,4 @@ declare function testRest(a: (t: T, t1: T, ...ts: T[]) => void): T testRest((t1:number, t2:boolean, t3) => {}) -/* @@? 18:10 Error TypeError: Type '(t1: Double, t2: Boolean, t3: never) => void' is not compatible with type '(t: never, t1: never, ...ts: Array) => void' at index 1 */ +/* @@? 16:18 Error Semantic error ESE0000: Function implementation is missing or not immediately following the declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets b/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets index 4c0ce6a576..49f8f0536c 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets @@ -19,6 +19,6 @@ let fob:(...args:number[])=>number = (...args:number[]) =>{} let foc:(c:string, ...args:number[])=>string = (c:number, ...args:string[]):string=>{} -/* @@? 16:46 Error TypeError: Type '(c: Double, ...args: Array) => void' cannot be assigned to type '(c: String, ...args: Array) => void' */ -/* @@? 18:38 Error TypeError: Type '(...args: Array) => void' cannot be assigned to type '(...args: Array) => Double' */ -/* @@? 20:48 Error TypeError: Type '(c: Double, ...args: Array) => String' cannot be assigned to type '(c: String, ...args: Array) => String' */ +/* @@? 16:46 Error Semantic error ESE0318: Type '(c: Double, ...args: Array) => void' cannot be assigned to type '(c: String, ...args: Array) => void' */ +/* @@? 18:38 Error Semantic error ESE0318: Type '(...args: Array) => void' cannot be assigned to type '(...args: Array) => Double' */ +/* @@? 20:48 Error Semantic error ESE0318: Type '(c: Double, ...args: Array) => String' cannot be assigned to type '(c: String, ...args: Array) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets index 618b2d2289..f9a7f5091b 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets @@ -29,5 +29,5 @@ let f2: F2 = (this: A): boolean => { return this.value } a./* @@ label1 */f1(); a./* @@ label2 */f2(); -/* @@@ label1 Error TypeError: Property 'f1' does not exist on type 'A' */ -/* @@@ label2 Error TypeError: Property 'f2' does not exist on type 'A' */ +/* @@@ label1 Error Semantic error ESE0087: Property 'f1' does not exist on type 'A' */ +/* @@@ label2 Error Semantic error ESE0087: Property 'f2' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets index e97bafda8f..2b2f410208 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets @@ -21,4 +21,4 @@ class A { function foo(this: A, f: (this: A) => void) /* @@ label1 */{} -/* @@@ label1 Error TypeError: The extension function 'foo' has the same name with public method in class A */ +/* @@@ label1 Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets b/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets index 17cdbda390..2b44e2b78b 100644 --- a/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets @@ -27,4 +27,4 @@ function main(): void { } - /* @@? 26:14 Error TypeError: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ \ No newline at end of file + /* @@? 26:14 Error Semantic error ESE0291: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ diff --git a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets index 406e90965e..fb1a51d790 100644 --- a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets +++ b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets @@ -76,30 +76,30 @@ function foo(){ } - /* @@? 17:16 Error TypeError: Cannot find type 'a'. */ - /* @@? 19:5 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 21:13 Error TypeError: Cannot find type 'a'. */ - /* @@? 30:13 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 31:23 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 34:22 Error TypeError: Cannot find type 'asd'. */ - /* @@? 37:13 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 41:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 42:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 43:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 44:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 48:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 49:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 50:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 51:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 56:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 57:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 59:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 60:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 64:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 65:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 67:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 68:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 70:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 71:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 73:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 74:19 Error TypeError: Cannot find type 'dsa'. */ + /* @@? 17:16 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 19:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 21:13 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 30:13 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 31:23 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 34:22 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 37:13 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 41:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 42:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 43:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 44:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 48:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 49:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 50:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 51:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 56:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 57:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 59:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 60:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 64:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 65:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 67:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 68:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 70:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 71:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 73:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 74:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ diff --git a/ets2panda/test/ast/compiler/ets/local_enum02.ets b/ets2panda/test/ast/compiler/ets/local_enum02.ets index 43b006318a..6c3879e654 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum02.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum02.ets @@ -25,5 +25,5 @@ function main() { arktest.assertEQ(Foo.Bar as int, 0) } -/* @@? 21:7 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:24 Warning Warning: Enum cast is deprecated. Cast support from 'Foo' to 'Int' will be removed. */ +/* @@? 21:7 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:24 Error Warning W0030: Enum cast is deprecated. Cast support from 'Foo' to 'Int' will be removed. */ diff --git a/ets2panda/test/ast/compiler/ets/local_enum03.ets b/ets2panda/test/ast/compiler/ets/local_enum03.ets index 0b08ef9258..f80368d1b1 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum03.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum03.ets @@ -22,5 +22,5 @@ function main() { arktest.assertEQ(Foo.Baz, 1) } - /* @@? 19:5 Error SyntaxError: Illegal start of ENUM expression. */ - /* @@? 20:22 Error TypeError: Unresolved reference Foo */ + /* @@? 19:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 20:22 Error Semantic error ESE0143: Unresolved reference Foo */ diff --git a/ets2panda/test/compiler/ets/manyLocalsParamRegUsage.ets b/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets similarity index 100% rename from ets2panda/test/compiler/ets/manyLocalsParamRegUsage.ets rename to ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets diff --git a/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets b/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets index ef222fcc9f..b8146583b4 100644 --- a/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets @@ -23,9 +23,9 @@ function foo1() { let undefined }; -/* @@? 21:9 Error TypeError: Variable 'NaN' has already been declared. */ -/* @@? 22:9 Error TypeError: Variable 'Infinity' has already been declared. */ -/* @@? 22:20 Error TypeError: Unresolved reference test */ -/* @@? 23:9 Error SyntaxError: Hard keyword 'undefined' cannot be used as identifier */ -/* @@? 23:9 Error SyntaxError: Identifier expected, got 'undefined'. */ -/* @@? 24:1 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? 21:9 Error Semantic error ESE0351: Variable 'NaN' has already been declared. */ +/* @@? 22:9 Error Semantic error ESE0351: Variable 'Infinity' has already been declared. */ +/* @@? 22:20 Error Semantic error ESE0143: Unresolved reference test */ +/* @@? 23:9 Error Syntax error ESY0316: Hard keyword 'undefined' cannot be used as identifier */ +/* @@? 23:9 Error Syntax error ESY0224: Identifier expected, got 'undefined'. */ +/* @@? 24:1 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ diff --git a/ets2panda/test/ast/compiler/ets/method-assignment.ets b/ets2panda/test/ast/compiler/ets/method-assignment.ets index 8bf46b3b8d..f64211aef6 100644 --- a/ets2panda/test/ast/compiler/ets/method-assignment.ets +++ b/ets2panda/test/ast/compiler/ets/method-assignment.ets @@ -47,10 +47,10 @@ c.foo1 = bar; C.foo2 = bar; c.interfaceFoo = bar; -/* @@? 31:9 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 36:9 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 44:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 45:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 46:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 47:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 48:1 Error TypeError: Class methods cannot be overwritten. */ +/* @@? 31:9 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 36:9 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 44:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 45:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 46:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 47:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 48:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets index 999bdad93d..83b768c660 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets @@ -39,4 +39,4 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets index 6fa2b2d5ba..dda372381f 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets @@ -39,4 +39,4 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: B): String` and `foo(x: I): String` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: B): String` and `foo(x: I): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets index 1914bd1ec3..75a567f38f 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets @@ -34,4 +34,4 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets index edc7a14ec1..79ac8bc1cd 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets @@ -36,5 +36,5 @@ function main(): int { } -/* @@? 34:22 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: I): String` */ -/* @@? 34:22 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: J): String` */ +/* @@? 34:22 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: I): String` */ +/* @@? 34:22 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: J): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets index 670b535d0d..16c17a7fe5 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets @@ -42,6 +42,6 @@ function main(): int { let asd5: double = /* @@ label */foo(new A(), 2.1); return 0; } -/* @@? 38:21 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(b: Int, a: I): Int` and `foo(d: Double, a: J): Double` */ -/* @@? 41:21 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: I, b: Int): Int` and `foo(a: J, d: Double): Double` */ -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: J, d: Double): Double` and `foo(a: I, d: Double): Double` */ +/* @@? 38:21 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(b: Int, a: I): Int` and `foo(d: Double, a: J): Double` */ +/* @@? 41:21 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: I, b: Int): Int` and `foo(a: J, d: Double): Double` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: J, d: Double): Double` and `foo(a: I, d: Double): Double` */ diff --git a/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets b/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets index a0a65edf47..ad254eb8cc 100644 --- a/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets +++ b/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets @@ -26,17 +26,8 @@ function foo(x: A | B) { x.foo("123") } -/* @@? 17:8 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:14 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:27 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:9 Error TypeError: Unresolved reference v */ -/* @@? 18:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 18:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:19 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets index 4ccc872657..3129ec9bdb 100644 --- a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets @@ -20,11 +20,10 @@ class BindFuncExpr { callback1 = callback1 || function () { } } -/* @@? 16:1 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 16:6 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 19:21 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:5 Error TypeError: Variable 'callback1' has already been declared. */ -/* @@? 20:17 Error TypeError: Unresolved reference callback1 */ -/* @@? 20:30 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:19 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:21 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:30 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:31 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:33 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets index 8668545833..96f328e430 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets @@ -24,4 +24,4 @@ function main() : void { /* @@ label */foo(a, a); } -/* @@@ label Error TypeError: Reference to foo is ambiguous */ +/* @@@ label Error Semantic error ESE0126: Reference to foo is ambiguous */ diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets index 4ff78ff8d2..6742903597 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets @@ -30,4 +30,4 @@ function main() : void { /* @@ label */obj.Foo(a, a); } -/* @@@ label Error TypeError: Reference to Foo is ambiguous */ +/* @@@ label Error Semantic error ESE0126: Reference to Foo is ambiguous */ diff --git a/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets b/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets index 7ec8ba7d89..bb0a33435e 100644 --- a/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets +++ b/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets @@ -27,4 +27,4 @@ function main() { c.met() } -/* @@? 20:5 Error TypeError: Function met with this assembly signature already declared. */ +/* @@? 20:5 Error Semantic error ESE0131: Function met with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets index fae775ab98..b5645879c7 100644 --- a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets +++ b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets @@ -25,5 +25,4 @@ class B extends A{ } -/* @@? 23:17 Error TypeError: Cannot inherit from class A, because field callback is inherited with a different declaration type */ - +/* @@? 23:17 Error Semantic error ESE0216: Cannot inherit from class A, because field callback is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets index f8eb76600c..5287468edc 100644 --- a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets @@ -24,5 +24,4 @@ class B extends A{ } -/* @@? 20:17 Error TypeError: Cannot inherit from class A, because method foo is inherited with a different declaration type */ - +/* @@? 20:17 Error Semantic error ESE0216: Cannot inherit from class A, because method foo is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets index 7650215aa6..2e80deb560 100644 --- a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets +++ b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets @@ -21,5 +21,5 @@ function main(): void { let ab : A = /* @@ label1 */abn; // should not work: nullable B (the type of abn) is not the subtype of non nullable B } -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'A' */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'A' */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'A' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets index 9d8d2764cd..c3f938b47e 100644 --- a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets +++ b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets @@ -26,10 +26,10 @@ idx++; 222222??222.27?22dXX2222 -/* @@? 16:1 Error SyntaxError: Unexpected token '*'. */ -/* @@? 16:2 Error SyntaxError: Unexpected token '22'. */ -/* @@? 16:4 Error SyntaxError: Unexpected token 'Array'. */ -/* @@? 16:4 Error TypeError: No matching call signature with trailing lambda */ -/* @@? 20:74 Error SyntaxError: Expected '}', got 'identification literal'. */ -/* @@? 27:22 Error SyntaxError: Unexpected token. */ -/* @@? 36:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 16:2 Error Syntax error ESY0227: Unexpected token '22'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'Array'. */ +/* @@? 16:4 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 20:74 Error Syntax error ESY0230: Expected '}', got 'identification literal'. */ +/* @@? 27:22 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 36:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets index 5b5f4986f7..1c5c5ce30a 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets @@ -20,6 +20,6 @@ namespace NS { NS.baz(); -/* @@? 17:12 Error SyntaxError: Export declarations are not permitted in a namespace. */ -/* @@? 17:14 Error SyntaxError: Cannot find name 'baz' to export. */ -/* @@? 20:4 Error TypeError: Property 'baz' does not exist on type 'NS' */ +/* @@? 17:12 Error Syntax error ESY0111: Export declarations are not permitted in a namespace. */ +/* @@? 17:14 Error Syntax error ESY0279: Cannot find name 'baz' to export. */ +/* @@? 20:4 Error Semantic error ESE0087: Property 'baz' does not exist on type 'NS' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets index 3d09af97b6..52777a0c12 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets @@ -20,4 +20,4 @@ namespace X { } -/* @@? 19:12 Error SyntaxError: Export declarations are not permitted in a namespace. */ \ No newline at end of file +/* @@? 19:12 Error Syntax error ESY0111: Export declarations are not permitted in a namespace. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets index d019c77f6e..b0cec3bc46 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets @@ -41,9 +41,9 @@ namespace M { } } -/* @@? 18:18 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 23:14 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 27:5 Error TypeError: Unresolved reference readonly */ -/* @@? 27:14 Error SyntaxError: Unexpected token 'R'. */ -/* @@? 27:14 Error TypeError: Unresolved reference R */ -/* @@? 27:16 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 23:14 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 27:5 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 27:14 Error Syntax error ESY0227: Unexpected token 'R'. */ +/* @@? 27:14 Error Semantic error ESE0143: Unresolved reference R */ +/* @@? 27:16 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets b/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets index 282ee1ede5..f6552bd484 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets @@ -20,4 +20,4 @@ namespace NS { } } -/* @@@ label Error TypeError: Property 'ss' is used before being assigned. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets index b94f23b401..f024407bca 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets @@ -56,12 +56,12 @@ let a = new Array() // CTE MySpace.C.a // CTE -/* @@? 55:27 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 44:13 Error TypeError: 'innerClass' is not exported in 'MySpace' */ -/* @@? 49:9 Error TypeError: 'privateVariable' is not exported in 'MySpace' */ -/* @@? 51:9 Error TypeError: 'foo' is not exported in 'MySpace' */ -/* @@? 53:13 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 57:9 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 42:28 Error TypeError: 'myInterface' is not exported in 'MySpace' */ -/* @@? 46:10 Error TypeError: 'Anno' is not exported in 'MySpace' */ -/* @@? 46:23 Error TypeError: 'Color' is not exported in 'MySpace' */ \ No newline at end of file +/* @@? 42:28 Error Semantic error ESE0206: 'myInterface' is not exported in 'MySpace' */ +/* @@? 44:13 Error Semantic error ESE0206: 'innerClass' is not exported in 'MySpace' */ +/* @@? 46:10 Error Semantic error ESE0206: 'Anno' is not exported in 'MySpace' */ +/* @@? 46:23 Error Semantic error ESE0206: 'Color' is not exported in 'MySpace' */ +/* @@? 49:9 Error Semantic error ESE0206: 'privateVariable' is not exported in 'MySpace' */ +/* @@? 51:9 Error Semantic error ESE0206: 'foo' is not exported in 'MySpace' */ +/* @@? 53:13 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ +/* @@? 55:27 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ +/* @@? 57:9 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets index 854d49684b..f96f8328c1 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets @@ -22,4 +22,4 @@ namespace NS2 { export let constant = NS1.value; // Error: Circular dependency } -/* @@? 18:16 Error TypeError: Circular dependency detected for identifier: value */ \ No newline at end of file +/* @@? 18:16 Error Semantic error ESE0308: Circular dependency detected for identifier: value */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets index 04395a8577..0cd9e64b1f 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets @@ -21,5 +21,5 @@ namespace ConflictedSpace { } } -/* @@? 19:22 Error TypeError: Variable 'InnerSpace' has already been declared. */ -/* @@? 19:22 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 19:22 Error Semantic error ESE0351: Variable 'InnerSpace' has already been declared. */ +/* @@? 19:22 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets index e590afd056..39d80b2798 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets @@ -20,4 +20,4 @@ namespace DuplicateSpace { } -/* @@? 19:16 Error TypeError: Variable 'shared' has already been declared. */ \ No newline at end of file +/* @@? 19:16 Error Semantic error ESE0351: Variable 'shared' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets index 0b828cc131..eea81808e8 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets @@ -23,7 +23,7 @@ if (Space1.variable == Space1.constant) { // CTE Space1.foo(); // CTE Space1.foo(1234); //ok -/* @@? 19:31 Error TypeError: Property 'constant' does not exist on type 'Space2' */ -/* @@? 20:23 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ +/* @@? 19:31 Error Semantic error ESE0087: Property 'constant' does not exist on type 'Space2' */ +/* @@? 20:23 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets index 6ad2245981..5c6b69d2ab 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets @@ -18,4 +18,4 @@ export namespace MergeSpace { export function foo() { return 42; } // Error: Conflicting 'foo()' definitions } -/* @@? src01.ets:19:11 Error TypeError: Function foo is already declared. */ +/* @@? src01.ets:19:11 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets index d0b7b04d91..35e11900db 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets @@ -50,14 +50,14 @@ class C{} OuterSpace.InnerSpace.privateVariable = 456; // CTE -/* @@? 45:16 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 45:27 Error TypeError: 'innerClass' is not exported in 'InnerSpace' */ -/* @@? 40:27 Error TypeError: 'privateVariable' is not exported in 'InnerSpace' */ -/* @@? 50:12 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 50:23 Error TypeError: 'privateVariable' is not exported in 'InnerSpace' */ -/* @@? 43:31 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 43:42 Error TypeError: 'myInterface' is not exported in 'InnerSpace' */ -/* @@? 47:13 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 47:24 Error TypeError: 'Anno' is not exported in 'InnerSpace' */ -/* @@? 47:40 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 47:51 Error TypeError: 'Color' is not exported in 'InnerSpace' */ \ No newline at end of file +/* @@? 40:27 Error Semantic error ESE0206: 'privateVariable' is not exported in 'InnerSpace' */ +/* @@? 43:31 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 43:42 Error Semantic error ESE0206: 'myInterface' is not exported in 'InnerSpace' */ +/* @@? 45:16 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 45:27 Error Semantic error ESE0206: 'innerClass' is not exported in 'InnerSpace' */ +/* @@? 47:13 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 47:24 Error Semantic error ESE0206: 'Anno' is not exported in 'InnerSpace' */ +/* @@? 47:40 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 47:51 Error Semantic error ESE0206: 'Color' is not exported in 'InnerSpace' */ +/* @@? 50:12 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 50:23 Error Semantic error ESE0206: 'privateVariable' is not exported in 'InnerSpace' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets index 3f5830f942..b459358e7b 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets @@ -26,4 +26,4 @@ namespace A.B { A.B.bar(); // Error: 'bar()' cannot be accessed -/* @@? 27:5 Error TypeError: 'bar' is not exported in 'B' */ \ No newline at end of file +/* @@? 27:5 Error Semantic error ESE0206: 'bar' is not exported in 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets index 59f35f113c..1fb2e2a8d9 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets @@ -22,4 +22,4 @@ namespace A.B { A.foo(); // Error: 'A' does not contain a member named 'foo' -/* @@? 22:3 Error TypeError: Property 'foo' does not exist on type 'A' */ +/* @@? 22:3 Error Semantic error ESE0087: Property 'foo' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets index a30b66e6de..f914c8fe84 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets @@ -21,4 +21,4 @@ namespace ParentSpace { let result = ParentSpace.ChildSpace.value; // Error: 'ChildSpace' is not defined -/* @@? 22:26 Error TypeError: Property 'ChildSpace' does not exist on type 'ParentSpace' */ +/* @@? 22:26 Error Semantic error ESE0087: Property 'ChildSpace' does not exist on type 'ParentSpace' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets index bdda956488..20da11c08d 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets @@ -18,4 +18,4 @@ namespace MySpace { let a = new MySpace() -/* @@? 19:13 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:13 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets index 84ddce2b34..cc422bd398 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets @@ -20,8 +20,8 @@ class A extends MySpace{} class B implements MySpace{} type C = MySpace -/* @@? 19:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:17 Error TypeError: The super type of 'A' class is not extensible. */ -/* @@? 20:20 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:20 Error TypeError: Interface expected here. */ -/* @@? 21:10 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0176: The super type of 'A' class is not extensible. */ +/* @@? 20:20 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 21:10 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets index 2839a3f207..0c569e102c 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets @@ -20,5 +20,5 @@ function foo(a:T){} let array:Array = new Array() -/* @@? 21:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 21:38 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:38 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets index ca16bb7470..cdf4456112 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets @@ -20,5 +20,5 @@ function foo(a:T){} foo(new MySpace()) -/* @@? 21:5 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 21:18 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:5 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:18 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets index 1be4203664..b7a04f4974 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets @@ -22,4 +22,4 @@ class A{ new A() -/* @@? 23:7 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:7 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets index 291ec97cf1..3c0a151f32 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets @@ -21,6 +21,6 @@ function foo2(): MySpace {} foo1(new MySpace()) -/* @@? 20:18 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 22:10 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:18 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 22:10 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets index a3d4f85994..2da2f18e89 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets @@ -23,7 +23,7 @@ class A{ let tuple:[int, string, MySpace] = [1, "1", new MySpace()] let union:int|string|MySpace = 1 -/* @@? 23:25 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 24:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 23:49 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:7 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 20:7 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:25 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:49 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 24:22 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets index c9b3a95bee..57363b79de 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets @@ -19,5 +19,5 @@ namespace MySpace { let foo1:(a:MySpace)=>int let foo2:()=>MySpace -/* @@? 19:13 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:14 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:13 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:14 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets index 34b0e476d3..84f5437ba2 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets @@ -18,4 +18,4 @@ namespace MySpace { let a = 1 as MySpace -/* @@? 19:14 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:14 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets index 89f6b4e676..2e8466c88f 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets @@ -18,5 +18,4 @@ namespace MySpace { let a = 1 instanceof MySpace -/* @@? 19:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:22 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets index eb120df6c8..ab6f34a949 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets @@ -18,4 +18,4 @@ namespace MySpace { let a = /* @@ label */MySpace -/* @@@ label Error SyntaxError: Namespace cannot be used as object. */ +/* @@@ label Error Syntax error ESY0318: Namespace cannot be used as object. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets index 897da0a756..16df419ec1 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets @@ -19,5 +19,5 @@ namespace MySpace{ function foo(a: MySpace) {} -/* @@? 20:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 17:12 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 17:12 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets index e2854245d4..781512b902 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets @@ -21,6 +21,5 @@ namespace B { namespace C {} // CTE } -/* @@? 17:1 Error SyntaxError: Unable to merge namespaces 'A', because their modifiers are different. */ -/* @@? 21:3 Error SyntaxError: Unable to merge namespaces 'C', because their modifiers are different. */ - +/* @@? 17:1 Error Syntax error ESY0006: Unable to merge namespaces 'A', because their modifiers are different. */ +/* @@? 21:3 Error Syntax error ESY0006: Unable to merge namespaces 'C', because their modifiers are different. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets index dbb6238cad..ff82472291 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets @@ -29,5 +29,4 @@ namespace P { namespace R {} // OK } -/* @@? 20:10 Error SyntaxError: Unable to merge namespaces 'Y', because their modifiers are different. */ - +/* @@? 20:10 Error Syntax error ESY0006: Unable to merge namespaces 'Y', because their modifiers are different. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets index 6277f52621..8ee3398e20 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets @@ -17,4 +17,4 @@ import A from "./src03" A.foo() -/* @@? 18:3 Error TypeError: 'foo' is not exported in 'A' */ \ No newline at end of file +/* @@? 18:3 Error Semantic error ESE0206: 'foo' is not exported in 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets index a46528de4d..a234e2c846 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets @@ -33,4 +33,4 @@ namespace A.C { function moo() { too(); } } -/* @@? 29:5 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 29:5 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets index 21ffae50b6..fe9ac3005e 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets @@ -19,4 +19,4 @@ export namespace MergeSpace { export function foo() { return "string"; } } -/* @@? namespace_access_violation_merge_conflicts.ets:18:12 Error TypeError: Function foo is already declared. */ +/* @@? namespace_access_violation_merge_conflicts.ets:18:12 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets index f38f0c8d9d..ab040ac884 100644 --- a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets @@ -16,12 +16,4 @@ class A { constructor(buffer: ArrayBuffer, byteOffset?: number, length?V number); -/* @@? 17:3 Error TypeError: No matching call signature for constructor */ -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:64 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:64 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:65 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:66 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:72 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:1 Error SyntaxError: Expected '}', got 'end of stream'. */ - +/* @@? 17:64 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets index 946b6b4974..dcd5243dea 100644 --- a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets +++ b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets @@ -17,7 +17,4 @@ e: @ring[][] = [["a", (c +ue)]] } -/* @@? 17:3 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 17:13 Error TypeError: Cannot find type 'ring'. */ -/* @@? 17:18 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 17:19 Error TypeError: Initializer has 2 elements, but tuple requires 0 */ +/* @@? 16:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets index c09b2b929e..b25c380639 100644 --- a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets @@ -24,4 +24,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets b/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets index dc623f5b1a..cc8adcb08a 100644 --- a/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets +++ b/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets @@ -15,10 +15,10 @@ importet lock1 = new ArkTSUt../main; -/* @@? 16:1 Error TypeError: Unresolved reference importet */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'lock1'. */ -/* @@? 16:10 Error TypeError: Unresolved reference lock1 */ -/* @@? 16:18 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 16:30 Error SyntaxError: Identifier expected. */ -/* @@? 16:31 Error SyntaxError: Identifier expected. */ -/* @@? 16:31 Error TypeError: Invalid type reference. */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference importet */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'lock1'. */ +/* @@? 16:10 Error Semantic error ESE0143: Unresolved reference lock1 */ +/* @@? 16:18 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:30 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:31 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:31 Error Semantic error ESE0299: Invalid type reference. */ diff --git a/ets2panda/test/ast/compiler/ets/no_match_sig.ets b/ets2panda/test/ast/compiler/ets/no_match_sig.ets index ac70bf305d..5ff7a6024d 100644 --- a/ets2panda/test/ast/compiler/ets/no_match_sig.ets +++ b/ets2panda/test/ast/compiler/ets/no_match_sig.ets @@ -31,4 +31,5 @@ function foo3(a: number, b: number, c?: number) { overload foo{ foo1, foo2, foo3 } -/* @@? 17:5 Error TypeError: No matching call signature for foo() */ \ No newline at end of file +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token 'foo'. */ +/* @@? 32:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets index d58ca014b2..f6ce144633 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets @@ -26,4 +26,4 @@ B.NonNullable(new Object()) class NonNullable{} -/* @@? 27:7 Error SyntaxError: Cannot be used as user-defined type. */ +/* @@? 27:7 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets index 409f8580b8..03c26181bd 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets @@ -19,4 +19,4 @@ class A { } } -/* @@? 18:12 Error TypeError: Type 'T' is not compatible with the enclosing method's return type 'NonNullable' */ +/* @@? 18:12 Error Semantic error ESE0091: Type 'T' is not compatible with the enclosing method's return type 'NonNullable' */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets index d0f02874ff..1ab7c8c625 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets @@ -24,6 +24,5 @@ function main(){ a = undefined; } -/* @@? 23:7 Error TypeError: Type 'null' cannot be assigned to type 'Int|A' */ -/* @@? 24:7 Error TypeError: Type 'undefined' cannot be assigned to type 'Int|A' */ - +/* @@? 23:7 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Int|A' */ +/* @@? 24:7 Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Int|A' */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets index 2ac195de81..a395f917c9 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets @@ -20,6 +20,6 @@ function main(){ a = null; } -/* @@? 19:22 Error SyntaxError: Expected '<', got 'identification literal'. */ -/* @@? 19:31 Error SyntaxError: Expected '>', got ';'. */ -/* @@? 20:7 Error TypeError: Type 'null' cannot be assigned to type 'Object' */ +/* @@? 19:22 Error Syntax error ESY0230: Expected '<', got 'identification literal'. */ +/* @@? 19:31 Error Syntax error ESY0230: Expected '>', got ';'. */ +/* @@? 20:7 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ diff --git a/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets b/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets index bb0b7a74cb..c5d32d9a38 100644 --- a/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets +++ b/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets @@ -41,5 +41,5 @@ async function test3(isError: boolean): Promise { //ok } -/* @@? 16:16 Error TypeError: Not all code paths return a value. */ -/* @@? 23:16 Error TypeError: Not all code paths return a value. */ +/* @@? 16:16 Error Semantic error ESE0104: Not all code paths return a value. */ +/* @@? 23:16 Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets b/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets index 793e440b54..362a6333ae 100644 --- a/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets +++ b/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets @@ -35,8 +35,8 @@ export let plug: Plug console.log(car, animal, mutant, jsvalue, plug) -/* @@? 36:13 Error TypeError: Variable 'car' is used before being assigned. */ -/* @@? 36:18 Error TypeError: Variable 'animal' is used before being assigned. */ -/* @@? 36:26 Error TypeError: Variable 'mutant' is used before being assigned. */ -/* @@? 36:34 Error TypeError: Variable 'jsvalue' is used before being assigned. */ -/* @@? 36:43 Error TypeError: Variable 'plug' is used before being assigned. */ +/* @@? 36:13 Error Semantic error ESE0375: Variable 'car' is used before being assigned. */ +/* @@? 36:18 Error Semantic error ESE0375: Variable 'animal' is used before being assigned. */ +/* @@? 36:26 Error Semantic error ESE0375: Variable 'mutant' is used before being assigned. */ +/* @@? 36:34 Error Semantic error ESE0375: Variable 'jsvalue' is used before being assigned. */ +/* @@? 36:43 Error Semantic error ESE0375: Variable 'plug' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets b/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets index 41b5889e00..369f22e75c 100644 --- a/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets +++ b/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets @@ -19,4 +19,4 @@ let c: number console.log(a, b, c) -/* @@? 20:16 Error TypeError: Variable 'b' is used before being assigned. */ +/* @@? 20:16 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets b/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets index 65df01f730..b62dbac5e4 100644 --- a/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets @@ -18,4 +18,4 @@ function fos(a0: T): T { return /* @@ label */a0 ?? myval; } -/* @@@ label Error TypeError: Type 'T|Short' is not compatible with the enclosing method's return type 'T' */ +/* @@@ label Error Semantic error ESE0091: Type 'T|Short' is not compatible with the enclosing method's return type 'T' */ diff --git a/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets b/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets index 095090df6f..b8e4c6a8e9 100644 --- a/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets +++ b/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets @@ -44,9 +44,9 @@ function foo6(z: float|undefined) { } -/* @@@ label1 Error TypeError: Value is out of range */ -/* @@@ label2 Error TypeError: Value is out of range */ -/* @@@ label3 Error TypeError: Value is out of range */ -/* @@@ label4 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label5 Error TypeError: Type 'Float' cannot be assigned to type 'Long' */ -/* @@@ label6 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label1 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label2 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label3 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label4 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label5 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Long' */ +/* @@@ label6 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets index db3372360a..d28827181c 100644 --- a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets +++ b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets @@ -21,8 +21,8 @@ export class AbstractDaoSession{ } } -/* @@? 1:3 Error TypeError: Cannot find type 'dataRdb'. */ -/* @@? 1:3 Error TypeError: 'ValueType' type does not exist. */ -/* @@? 17:62 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 19:17 Error TypeError: Cannot find type 'AbstractDao'. */ -/* @@? 20:22 Error TypeError: 'await' expressions require Promise object as argument. */ +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'dataRdb'. */ +/* @@? 1:3 Error Semantic error ESE0070: 'ValueType' type does not exist. */ +/* @@? 17:62 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 19:17 Error Semantic error ESE0371: Cannot find type 'AbstractDao'. */ +/* @@? 20:22 Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets index 1d92528ee1..bc8ededf47 100644 --- a/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets +++ b/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets @@ -23,4 +23,4 @@ function mustCallArgSize() { }); } -/* @@? 20:9 Error TypeError: Variable 'xf' is accessed before it's initialization. */ +/* @@? 20:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets index cdc9e36f1b..63a1b82c2f 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets @@ -21,4 +21,4 @@ function main() { let result = foo(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets index 36888a9df3..1097fdc366 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets @@ -21,4 +21,4 @@ function main() { let result = foo(undefined, undefined); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|undefined). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|undefined). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets index 7a6a190621..b75e0efe09 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets @@ -21,4 +21,4 @@ function main() { let result = foo(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets index cd52b90aae..accfe306fd 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets @@ -19,4 +19,4 @@ let result = /* @@ label */a + b; } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@@ label Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets index c06bf74674..dbfc847d9d 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets @@ -26,5 +26,5 @@ function main() { let result2 = foo2(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ -/* @@@ label1 Error TypeError: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label1 Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets index d93a7dccdd..0568fd1d53 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets @@ -20,4 +20,4 @@ let c: C = /* @@ label */{ 33: 44, }; -/* @@@ label Error TypeError: key in class composite should be either identifier or string literal */ +/* @@@ label Error Semantic error ESE0073: key in class composite should be either identifier or string literal */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets index 574c0ff1f1..b08f62ba53 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets @@ -21,4 +21,4 @@ let c: C = { /* @@ label */f: 44, }; -/* @@@ label Error TypeError: Property f is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property f is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets index a9609fd36b..685c59a140 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets @@ -15,4 +15,4 @@ let /* @@ label */x = {}; -/* @@@ label Error TypeError: Cannot infer type for x because class composite needs an explicit target type */ +/* @@@ label Error Semantic error ESE0174: Cannot infer type for x because class composite needs an explicit target type */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets index 35d389ecbf..76992d4f7e 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets @@ -19,4 +19,4 @@ class C { let c: C = /* @@ label */{}; -/* @@@ label Error TypeError: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ +/* @@@ label Error Semantic error ESE0291: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets index 8cd6e2dcf2..7499e31e9a 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets @@ -20,4 +20,4 @@ let c: C = { /* @@ label */f: 44, }; -/* @@@ label Error TypeError: type C has no property named f */ +/* @@@ label Error Semantic error ESE0065: type C has no property named f */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets index 23a7a7719e..039aea4bcf 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets @@ -19,4 +19,4 @@ class C { let c: C = /* @@ label */{}; -/* @@@ label Error TypeError: Signature constructor(): void is not visible here. */ +/* @@@ label Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets index ce025f5c2a..de703db104 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets @@ -21,4 +21,4 @@ let c: C = { f: /* @@ label */"ouch" }; -/* @@@ label Error TypeError: Type '"ouch"' is not compatible with type 'Int' at property 'f' */ +/* @@@ label Error Semantic error ESE0319: Type '"ouch"' is not compatible with type 'Int' at property 'f' */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets index 876abd1349..fa18d96488 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets @@ -38,8 +38,8 @@ function main(){ let x5:C3 = /* @@ label5 */{field1:1000, field2:"some str"}; } -/* @@@ label Error TypeError: type C has no property named field3 */ -/* @@@ label2 Error TypeError: Property field2 is not visible here. */ -/* @@@ label3 Error TypeError: Type '"some str"' is not compatible with type 'Double' at property 'field1' */ -/* @@@ label4 Error TypeError: Type C2 has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ -/* @@@ label5 Error TypeError: Signature constructor(): void is not visible here. */ +/* @@@ label Error Semantic error ESE0065: type C has no property named field3 */ +/* @@@ label2 Error Semantic error ESE0293: Property field2 is not visible here. */ +/* @@@ label3 Error Semantic error ESE0319: Type '"some str"' is not compatible with type 'Double' at property 'field1' */ +/* @@@ label4 Error Semantic error ESE0291: Type C2 has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ +/* @@@ label5 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets index 8c0a2cc2bb..f5cedb5de5 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets @@ -24,4 +24,4 @@ function main(){ let x:C4 = /* @@ label */{field1:1000,field2:"some str"}; } -/* @@@ label Error TypeError: Abstract class has abstract method method1 */ +/* @@@ label Error Semantic error ESE0257: Abstract class has abstract method method1 */ diff --git a/ets2panda/test/ast/compiler/ets/optional_method.ets b/ets2panda/test/ast/compiler/ets/optional_method.ets index 5f4df22834..6d4fce92ca 100644 --- a/ets2panda/test/ast/compiler/ets/optional_method.ets +++ b/ets2panda/test/ast/compiler/ets/optional_method.ets @@ -20,5 +20,5 @@ interface Y { interfaceMethod?/* @@ label2 */(): void } -/* @@@ label1 Error SyntaxError: Optional methods are not supported. */ -/* @@@ label2 Error SyntaxError: Optional methods are not supported. */ +/* @@@ label1 Error Syntax error ESY129375: Optional methods are not supported. */ +/* @@@ label2 Error Syntax error ESY129375: Optional methods are not supported. */ diff --git a/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets b/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets index f73c7e1334..b54c6a51d2 100644 --- a/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets +++ b/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets @@ -27,4 +27,4 @@ function main() { /* @@ label */foo(1, 2, 3) } -/* @@@ label Error TypeError: Reference to foo is ambiguous */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0126: Reference to foo is ambiguous */ diff --git a/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets index 6559e6d66b..adf7b7c7dd 100644 --- a/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets @@ -21,4 +21,4 @@ class C { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ +/* @@? 21:34 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets index d4a9648f60..d60cb0a20a 100644 --- a/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets @@ -21,4 +21,4 @@ class C { overload constructor { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ +/* @@? 21:42 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets b/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets index 70eb87ba28..1e26ffb29d 100644 --- a/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets +++ b/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets @@ -23,4 +23,4 @@ namespace NS { overload foo {NS.foo1, NS.A.foo2, /* @@ label1 */NS.A.foo2} -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets index 3d5f01eb89..c3d9eed094 100644 --- a/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets @@ -20,4 +20,4 @@ interface I { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ +/* @@? 20:34 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets index 3b4308b99f..9b057f89e3 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets @@ -30,4 +30,4 @@ function foo113(a: C): C { overload foo{ foo111, foo112, foo113,/* @@ label1 */foo111 } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets index fa182d50da..d1e10c4ad5 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets @@ -33,5 +33,4 @@ namespace NS { overload foo{ NS.NS2.foo1, NS.NS2.NS3.foo2, NS.foo3, /* @@ label1 */NS.NS2.NS3.foo2}; -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ - +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets index 2d656eb4b7..5a0e8f9a51 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets @@ -31,4 +31,4 @@ class Test1 { overload foo{ foo111, foo112, foo113,/* @@ label1 */foo111 } } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets index d5a1d45da9..c9726e8092 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets @@ -19,7 +19,7 @@ class Base { overload foo {/* @@ label2 */foo, /* @@ label3 */foo} } -/* @@@ label1 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label2 Error TypeError: The overloaded name 'foo' can't refer to a function with overload signatures. */ -/* @@@ label3 Error TypeError: Duplicate overloaded method. */ -/* @@@ label3 Error TypeError: The overloaded name 'foo' can't refer to a function with overload signatures. */ +/* @@@ label1 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'foo' can't refer to a function with overload signatures. */ +/* @@@ label3 Error Semantic error ESE0385: Duplicate overloaded method. */ +/* @@@ label3 Error Semantic error ESE0389: The overloaded name 'foo' can't refer to a function with overload signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets index 1a2ab17c31..f07d022201 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets @@ -28,4 +28,4 @@ class Test1 extends Test0 { overload foo{foo111, /* @@ label1 */foo111, foo112} } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets index dec7657edd..444b4e0bd0 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets @@ -23,5 +23,4 @@ class E { } } -/* @@? 22:22 Error TypeError: Overloaded method is used as value */ - +/* @@? 22:22 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets index 79401623d2..6fcdab1633 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets @@ -18,4 +18,4 @@ function foo2() {} overload foo{foo1, foo2} let OL = /* @@ label */foo; -/* @@@ label Error TypeError: Overloaded method is used as value */ +/* @@@ label Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets b/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets index f377a79a6a..9ae32c0936 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets @@ -35,4 +35,4 @@ function foo(a: T) { return /* @@ label1 */a.foo() } -/* @@@ label1 Error TypeError: Overload declaration cannot be called by union. */ +/* @@@ label1 Error Semantic error ESE0391: Overload declaration cannot be called by union. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets index e718f62443..cdd2254fa8 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets @@ -31,5 +31,5 @@ function foo(a: T) { return /* @@ label1 */a.foo() } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label1 Error TypeError: No matching call signature */ +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets index 9baccdcf5c..c2875ea1e6 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets @@ -25,4 +25,4 @@ function main() { foo(1, 2) } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets index b1be5bf6b4..20b4b5c0d4 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets @@ -31,4 +31,4 @@ function /*@@ label */foo(x: int, y: int): int{ function main() { } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@? 21:23 Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets b/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets index f5f2b2064a..05e2c36928 100644 --- a/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets +++ b/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets @@ -20,4 +20,4 @@ class Base { } class Derived extends Base {} -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/override11.ets b/ets2panda/test/ast/compiler/ets/override11.ets index 2c43199671..5ee14e54fe 100644 --- a/ets2panda/test/ast/compiler/ets/override11.ets +++ b/ets2panda/test/ast/compiler/ets/override11.ets @@ -21,5 +21,5 @@ class B extends A { override fn(t: int): void { } } -/* @@? 21:14 Error TypeError: fn(t: Int): void in B cannot override fn(t: Int): Int in A because overriding return type is not compatible with the other return type. */ -/* @@? 21:14 Error TypeError: Method fn(t: Int): void in B not overriding any method */ +/* @@? 21:14 Error Semantic error ESE0141: fn(t: Int): void in B cannot override fn(t: Int): Int in A because overriding return type is not compatible with the other return type. */ +/* @@? 21:14 Error Semantic error ESE0136: Method fn(t: Int): void in B not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/override15.ets b/ets2panda/test/ast/compiler/ets/override15.ets index 2afb8940d3..94fdb03d80 100644 --- a/ets2panda/test/ast/compiler/ets/override15.ets +++ b/ets2panda/test/ast/compiler/ets/override15.ets @@ -21,5 +21,5 @@ interface I2 extends I { fn(): float; } -/* @@? 21:3 Error TypeError: fn(): Float in I2 cannot override fn(): Int in I because overriding return type is not compatible with the other return type. */ -/* @@? 21:3 Error TypeError: Method fn(): Float in I2 not overriding any method */ +/* @@? 21:3 Error Semantic error ESE0141: fn(): Float in I2 cannot override fn(): Int in I because overriding return type is not compatible with the other return type. */ +/* @@? 21:3 Error Semantic error ESE0136: Method fn(): Float in I2 not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/override3.ets b/ets2panda/test/ast/compiler/ets/override3.ets index 96cdf17944..cb3a62e4d8 100644 --- a/ets2panda/test/ast/compiler/ets/override3.ets +++ b/ets2panda/test/ast/compiler/ets/override3.ets @@ -17,5 +17,5 @@ interface I { toString(): int; } -/* @@? 17:3 Error TypeError: toString(): Int in I cannot override toString(): String in Object because overriding return type is not compatible with the other return type. */ -/* @@? 17:3 Error TypeError: Method toString(): Int in I not overriding any method */ +/* @@? 17:3 Error Semantic error ESE0141: toString(): Int in I cannot override toString(): String in Object because overriding return type is not compatible with the other return type. */ +/* @@? 17:3 Error Semantic error ESE0136: Method toString(): Int in I not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/override7.ets b/ets2panda/test/ast/compiler/ets/override7.ets index aca0ae3a32..631804ad31 100644 --- a/ets2panda/test/ast/compiler/ets/override7.ets +++ b/ets2panda/test/ast/compiler/ets/override7.ets @@ -23,5 +23,5 @@ abstract class A implements I { public override fn(): int { return 1; } } -/* @@? 23:21 Error TypeError: fn(): Int in A cannot override fn(): void in J because overriding return type is not compatible with the other return type. */ -/* @@? 23:21 Error TypeError: Method fn(): Int in A not overriding any method */ +/* @@? 23:21 Error Semantic error ESE0141: fn(): Int in A cannot override fn(): void in J because overriding return type is not compatible with the other return type. */ +/* @@? 23:21 Error Semantic error ESE0136: Method fn(): Int in A not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets index abc1ea4562..bb9068338b 100644 --- a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets +++ b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets @@ -25,4 +25,4 @@ class B { } } -/* @@@ label Error TypeError: Method foo(a: Int): Int in B not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(a: Int): Int in B not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets index 3609cbb822..7acbdc98c1 100644 --- a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets +++ b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets @@ -42,13 +42,13 @@ static { var_tobe_shadowed = 2; } -/* @@? P3.ets:26:25 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:27:23 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:29:14 Error SyntaxError: Missing initialization for const package property */ -/* @@? P3.ets:29:18 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? P3.ets:30:30 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:31:14 Error TypeError: Cannot reassign constant c_nn2 */ -/* @@? P3.ets:32:6 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:33:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:34:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:39:14 Error SyntaxError: Missing initialization for const package property */ +/* @@? 26:25 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 27:23 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 29:14 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 29:18 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 30:30 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 31:14 Error Semantic error ESE0297: Cannot reassign constant c_nn2 */ +/* @@? 32:6 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 33:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 34:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 39:14 Error Syntax error ESY0294: Missing initialization for const package property */ diff --git a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets index 241151b646..cfa4702f5e 100644 --- a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets @@ -15,10 +15,10 @@ import {nn, nn1, nn2} from "./P3" -/* @@? P3.ets:26:25 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:27:23 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:29:18 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? P3.ets:30:30 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:32:6 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:33:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:34:1 Error SyntaxError: Invalid package toplevel statement */ +/* @@? P3.ets:26:25 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:27:23 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:29:18 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? P3.ets:30:30 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:32:6 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:33:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? P3.ets:34:1 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets index 9973e90217..225e724a19 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets @@ -15,4 +15,4 @@ import {NS} from "./package" -/* @@? P2_01.ets:22:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ \ No newline at end of file +/* @@? P2_01.ets:22:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets index a61fb5e005..3a4f6b9c1f 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets @@ -22,4 +22,5 @@ export namespace NS { } } -/* @@? P2_01.ets:22:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token 'package'. */ +/* @@? 20:5 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets index 8d0dd86453..3c48fdfe5f 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets @@ -21,4 +21,5 @@ export namespace NS { } } -/* @@? P2_02.ets:21:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token 'package'. */ +/* @@? 19:5 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets b/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets index dfb039f82e..7aa7a4e34c 100644 --- a/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets @@ -15,4 +15,4 @@ import {nn3, nn4} from "./P1" -/* @@? P1_1.ets:20:5 Error SyntaxError: static block cannot apply to multi-files for one package */ \ No newline at end of file +/* @@? P1_1.ets:20:5 Error Syntax error ESY0289: static block cannot apply to multi-files for one package */ diff --git a/ets2panda/test/ast/compiler/ets/param_sort_1.ets b/ets2panda/test/ast/compiler/ets/param_sort_1.ets index bba3a5f570..d08088ef80 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_1.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_1.ets @@ -14,4 +14,4 @@ */ function foo(p1: int, p2?: int, /* @@ label */p3: int) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/compiler/ets/param_sort_2.ets b/ets2panda/test/ast/compiler/ets/param_sort_2.ets index 17b9a79e2e..ac3e532111 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_2.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_2.ets @@ -14,4 +14,4 @@ */ function foo(p1: boolean, p2?: int, /* @@ label */p3: string) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/compiler/ets/param_sort_3.ets b/ets2panda/test/ast/compiler/ets/param_sort_3.ets index 8a38d4cdac..ef829375c3 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_3.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_3.ets @@ -14,4 +14,4 @@ */ function foo(p1: int, p2: int = 44, /* @@ label */p3: int) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets b/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets index 22b996e74d..19b7d505e7 100644 --- a/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets @@ -38,24 +38,24 @@ function main() { } catch (e) { } } -/* @@? 28:3 Error TypeError: No matching call signature for foo1(Double) */ -/* @@? 28:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 29:3 Error TypeError: No matching call signature for foo2(Double) */ -/* @@? 29:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 30:3 Error TypeError: No matching call signature for foo3(Int) */ -/* @@? 30:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 30:10 Error TypeError: Class or interface 'Int' cannot be used as object */ -/* @@? 31:3 Error TypeError: No matching call signature for foo4(String) */ -/* @@? 31:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 31:10 Error TypeError: Class or interface 'String' cannot be used as object */ -/* @@? 32:3 Error TypeError: No matching call signature for foo5(Boolean) */ -/* @@? 32:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 32:10 Error TypeError: Class or interface 'Boolean' cannot be used as object */ -/* @@? 33:3 Error TypeError: No matching call signature for foo6(Double) */ -/* @@? 33:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 34:3 Error TypeError: No matching call signature for foo7(Double) */ -/* @@? 34:8 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 35:14 Error TypeError: No matching call signature for isSafeInteger(Double) */ -/* @@? 35:35 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 37:16 Error TypeError: No matching call signature for isSafeInteger(Double) */ -/* @@? 37:37 Error TypeError: Class name can't be the argument of function or method. */ \ No newline at end of file +/* @@? 28:3 Error Semantic error ESE0127: No matching call signature for foo1(Double) */ +/* @@? 28:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 29:3 Error Semantic error ESE0127: No matching call signature for foo2(Double) */ +/* @@? 29:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 30:3 Error Semantic error ESE0127: No matching call signature for foo3(Int) */ +/* @@? 30:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 30:10 Error Semantic error ESE0294: Class or interface 'Int' cannot be used as object */ +/* @@? 31:3 Error Semantic error ESE0127: No matching call signature for foo4(String) */ +/* @@? 31:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 31:10 Error Semantic error ESE0294: Class or interface 'String' cannot be used as object */ +/* @@? 32:3 Error Semantic error ESE0127: No matching call signature for foo5(Boolean) */ +/* @@? 32:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 32:10 Error Semantic error ESE0294: Class or interface 'Boolean' cannot be used as object */ +/* @@? 33:3 Error Semantic error ESE0127: No matching call signature for foo6(Double) */ +/* @@? 33:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 34:3 Error Semantic error ESE0127: No matching call signature for foo7(Double) */ +/* @@? 34:8 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 35:14 Error Semantic error ESE0127: No matching call signature for isSafeInteger(Double) */ +/* @@? 35:35 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 37:16 Error Semantic error ESE0127: No matching call signature for isSafeInteger(Double) */ +/* @@? 37:37 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ diff --git a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets index 39968154fe..5b43fa8669 100644 --- a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets +++ b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets @@ -20,4 +20,4 @@ const _innerFunc = (arg: { x: number } | undefined): number => { return arg.x; }; -/* @@? 16:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets index 32781a0e03..eef609e5aa 100644 --- a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets +++ b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets @@ -15,5 +15,5 @@ @interface /* @@ label1 */� -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:1 Error SyntaxError: Expected '{', got 'end of stream'. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/parser_format.ets b/ets2panda/test/ast/compiler/ets/parser_format.ets index a468621ea1..524eb60e20 100644 --- a/ets2panda/test/ast/compiler/ets/parser_format.ets +++ b/ets2panda/test/ast/compiler/ets/parser_format.ets @@ -17,10 +17,10 @@ declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare struct MainProg2 { @@Stave } -/* @@? 16:1 Error TypeError: Cannot find type 'declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare'. */ -/* @@? 16:1 Error TypeError: Class literal is not yet supported. */ -/* @@? 16:46 Error SyntaxError: Unexpected token 'MainProg2'. */ -/* @@? 16:46 Error TypeError: Unresolved reference MainProg2 */ -/* @@? 16:56 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: There is no any node to insert at the placeholder position. */ -/* @@? 17:7 Error TypeError: Unresolved reference Stave */ +/* @@? 16:1 Error Semantic error ESE0371: Cannot find type 'declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare'. */ +/* @@? 16:1 Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token 'MainProg2'. */ +/* @@? 16:46 Error Semantic error ESE0143: Unresolved reference MainProg2 */ +/* @@? 16:56 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@? 17:7 Error Semantic error ESE0143: Unresolved reference Stave */ diff --git a/ets2panda/test/ast/compiler/ets/parser_import.ets b/ets2panda/test/ast/compiler/ets/parser_import.ets index 3fb9464550..adff45b9cd 100644 --- a/ets2panda/test/ast/compiler/ets/parser_import.ets +++ b/ets2panda/test/ast/compiler/ets/parser_import.ets @@ -17,6 +17,6 @@ let callbackc = (arrElem: JSValue) => { import {a} from } -/* @@? 17:5 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 22:70 Error SyntaxError: Expected '}', got 'end of stream'. */ \ No newline at end of file +/* @@? 17:5 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 18:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 23:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets index 1692ddeb25..bd20227402 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets @@ -28,4 +28,4 @@ function foo(): void { let fld_1: Partial = /* @@ label */new A(); // CTE } -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'Partial' */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'Partial' */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets index 9096cd90ec..23bcbaa572 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets @@ -23,4 +23,4 @@ function foo(): void { let a_class: A = /* @@ label */partial_A; } -/* @@@ label Error TypeError: Type 'Partial' cannot be assigned to type 'A' */ +/* @@@ label Error Semantic error ESE0318: Type 'Partial' cannot be assigned to type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets index eda9ef3758..ba0e18a649 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets @@ -26,4 +26,4 @@ function foo(): void { a_class.mmeb = /* @@ label */undefined; } -/* @@@ label Error TypeError: Type 'undefined' cannot be assigned to type 'Double' */ +/* @@@ label Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets b/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets index 2b6557074b..4878eabfb9 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets @@ -21,6 +21,4 @@ function main() { genericFunc<{a: number, b: string}>({a: 1}) } -/* @@? 21:3 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 21:15 Error TypeError: need to specify target type for class composite */ -/* @@? 21:38 Error TypeError: need to specify target type for class composite */ +/* @@? 16:28 Error Semantic error ESE0000: Cannot find name Partial */ diff --git a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets index 7cd333f43e..df98b031ff 100644 --- a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets +++ b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Method foo(): void in B not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(): void in B not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/private_field_declaration.ets b/ets2panda/test/ast/compiler/ets/private_field_declaration.ets index 153546fc72..ec421a2d71 100644 --- a/ets2panda/test/ast/compiler/ets/private_field_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/private_field_declaration.ets @@ -18,5 +18,5 @@ #field: int = 0; } - /* @@? 18:5 Error SyntaxError: Use 'private' keyword to declare an identifier as private. */ - /* @@? 18:5 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file + /* @@? 18:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets index 9a07282a7a..8c4c57551e 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets @@ -23,4 +23,4 @@ function main() { /* @@ label */z.i = 2.9 } -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets index 974a88ae5f..422bed0145 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets @@ -33,4 +33,4 @@ function main() { /* @@ label */z.j = "new str" } -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets b/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets index 7a6e516d42..3a5c949b0c 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets @@ -16,9 +16,9 @@ WE: readonly true; let: readonly; -/* @@? 16:5 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:5 Error TypeError: Unresolved reference readonly */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'true'. */ -/* @@? 17:4 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 17:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 17:6 Error SyntaxError: Unexpected token 'readonly'. */ +/* @@? 16:5 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'true'. */ +/* @@? 17:4 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 17:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token 'readonly'. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets index bace18b65d..1506e93995 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets @@ -15,5 +15,5 @@ let a: readonly int [""]; -/* @@? 16:21 Error SyntaxError: Indexed access types are not supported, use type name instead! */ -/* @@? 16:25 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ \ No newline at end of file +/* @@? 16:21 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ +/* @@? 16:25 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets index fe4d6158f7..1b750e2710 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets @@ -15,8 +15,7 @@ function foo(param1: readonly/* @@ foo_param1 */, param2: readonly /* @@ foo_param2 */true) {} -/* @@@ foo_param1 Error SyntaxError: Invalid Type. */ -/* @@@ foo_param1 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ - -/* @@@ foo_param2 Error SyntaxError: Invalid Type. */ -/* @@@ foo_param2 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ foo_param1 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ foo_param1 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ foo_param2 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ foo_param2 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets index 3830a00052..ed89e2ca1c 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets @@ -19,13 +19,11 @@ class A { c: readonly /* @@ A_c */1; } -/* @@@ A_a Error SyntaxError: Invalid Type. */ -/* @@@ A_a Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ - -/* @@@ A_b Error SyntaxError: Invalid Type. */ -/* @@@ A_b Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@@ A_b Error SyntaxError: Unexpected token 'false'. */ - -/* @@@ A_c Error SyntaxError: Invalid Type. */ -/* @@@ A_c Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@@ A_c Error SyntaxError: Unexpected token '1'. */ +/* @@@ A_a Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_a Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ A_b Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_b Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ A_b Error Syntax error ESY0227: Unexpected token 'false'. */ +/* @@@ A_c Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_c Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ A_c Error Syntax error ESY0227: Unexpected token '1'. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets index 46ad39e55c..90c8bcaaa7 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets @@ -15,7 +15,7 @@ readonly static S = c' '; -/* @@? 16:1 Error TypeError: Unresolved reference readonly */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'static'. */ -/* @@? 16:17 Error SyntaxError: Unexpected token 'S'. */ -/* @@? 16:17 Error TypeError: Unresolved reference S */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token 'S'. */ +/* @@? 16:17 Error Semantic error ESE0143: Unresolved reference S */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyField.ets b/ets2panda/test/ast/compiler/ets/readonlyField.ets index 4b48970029..f94dc57b3c 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField.ets @@ -24,4 +24,4 @@ function main(): void { /* @@ label */myData.value = "new data"; } -/* @@@ label Error TypeError: Cannot assign to a readonly variable value */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable value */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets index 9dc39f7fa4..57b49b45af 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets @@ -27,4 +27,4 @@ function main(): void { updatePerson(person); } -/* @@@ label Error TypeError: Cannot assign to a readonly variable name */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable name */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets index b68cabb424..6c3773134d 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets @@ -23,4 +23,4 @@ function main() { } -/* @@? 22:7 Error TypeError: Cannot assign to this property because it is readonly. */ \ No newline at end of file +/* @@? 22:7 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets index 1e8c2d5d48..e88257e307 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets @@ -28,4 +28,4 @@ function main() { } -/* @@? 27:12 Error TypeError: Cannot assign to this property because it is readonly. */ \ No newline at end of file +/* @@? 27:12 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets index b2680473fc..b74812ecfe 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets @@ -26,5 +26,5 @@ function foo(a0: A) { } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets index 5685a9042e..fc0886cc79 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets @@ -22,5 +22,5 @@ function foo(a0: A) { /* @@ label */a.fld = 5 } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets index 7ef6007189..53c1c775ef 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets @@ -20,5 +20,5 @@ class A { } } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets index 4d3bf9936e..c86cd45121 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets @@ -29,5 +29,5 @@ class C extends B { } } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonly_array01.ets b/ets2panda/test/ast/compiler/ets/readonly_array01.ets index 35d50fac50..0280a8d5ba 100644 --- a/ets2panda/test/ast/compiler/ets/readonly_array01.ets +++ b/ets2panda/test/ast/compiler/ets/readonly_array01.ets @@ -19,5 +19,5 @@ function main() { v[0] = [] // CTE } -/* @@? 19:5 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 19:12 Error TypeError: Can't resolve array type */ +/* @@? 19:5 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 19:12 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets index c496f27239..1d3afd8548 100644 --- a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets +++ b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets @@ -21,4 +21,4 @@ function main(): void { } } -/* @@? 20:12 Error TypeError: Type '(param: String) => String' is not compatible with type '(param: Double) => String' at index 2 */ +/* @@? 20:12 Error Semantic error ESE0046: Type '(param: String) => String' is not compatible with type '(param: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets index 662eea658f..87b479ad90 100644 --- a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets +++ b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets @@ -23,6 +23,6 @@ function main(): void { handlerMap[2] = 1 } -/* @@? 23:5 Error TypeError: No matching indexing signature for $_set(Int, Int) */ -/* @@? 23:16 Error TypeError: Cannot find index access method with the required signature. */ -/* @@? 23:21 Error TypeError: Type 'Int' is not compatible with type '(param: Double) => String' at index 2 */ +/* @@? 23:5 Error Semantic error ESE0127: No matching indexing signature for $_set(Int, Int) */ +/* @@? 23:16 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ +/* @@? 23:21 Error Semantic error ESE0046: Type 'Int' is not compatible with type '(param: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets index f2f1b08aa9..00f8c6e111 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets @@ -17,6 +17,6 @@ class A>>{} class C extends A/* @@ label1 */>{} /* A does not satisfy the constraint due to invariance of T */ -/* @@@ label Error TypeError: Type argument 'A' should be a subtype of 'A>>'-constraint */ -/* @@@ label2 Error TypeError: Type argument 'C' should be a subtype of 'A>'-constraint */ -/* @@@ label1 Error TypeError: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label1 Error Semantic error ESE0228: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label2 Error Semantic error ESE0228: Type argument 'C' should be a subtype of 'A>'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets index 9bc5f8cdcc..aaaedc1f71 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets @@ -20,4 +20,4 @@ function main(){ /* @@ label */foo() } -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets index 9ee831177a..39892c0819 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets @@ -16,4 +16,4 @@ interface A>{} interface D{} interface B extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'D' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'D' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets index 3596a49b97..95a0a5cf6d 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets @@ -16,4 +16,4 @@ interface A,T2 extends A>{} interface D{} interface B extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'D' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'D' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets index 7cd9a2186a..1b3e736844 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets @@ -26,4 +26,4 @@ function main(){ /* @@ label */a_obj.foo(x) } -/* @@@ label Error TypeError: No matching call signature for foo(C) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(C) */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets b/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets index 6bd9794ea2..92cc19da26 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets @@ -24,5 +24,5 @@ function main(){ let a_obj = new A() /* @@ label */a_obj.foo(/* @@ label1 */y) } -/* @@@ label1 Error TypeError: Type 'D' is not compatible with type 'C' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(D) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(D) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'D' is not compatible with type 'C' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets index 0238b2626c..c90356d2be 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets @@ -19,4 +19,4 @@ class T

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

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

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

' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets b/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets index ec66c92c5e..523085dfeb 100644 --- a/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets +++ b/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets @@ -23,4 +23,4 @@ export class Array { a: T } -/* @@? 1:3 Error TypeError: Class 'Array' is already defined. */ \ No newline at end of file +/* @@? 1:3 Error Semantic error ESE0349: Class 'Array' is already defined. */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets index 98320d2d4c..b6299a9443 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets @@ -25,4 +25,4 @@ function main(): void { let req_a: A = {fld: /* @@ label */{}}; } -/* @@@ label Error TypeError: Class property 'b_fld' needs to be initialized for Required. */ +/* @@@ label Error Semantic error ESE0226: Class property 'b_fld' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets index e2c98e264d..00075afa63 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets @@ -22,4 +22,4 @@ function main(): void { req_b.fld = /* @@ label */undefined; } -/* @@@ label Error TypeError: Type 'undefined' cannot be assigned to type 'Double' */ +/* @@@ label Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets index 28bad7ad5a..46ba6573bd 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets @@ -21,4 +21,4 @@ function main(): void { let req_b: Required = /* @@ label */new B(); } -/* @@@ label Error TypeError: Type 'B' cannot be assigned to type 'Required' */ +/* @@@ label Error Semantic error ESE0318: Type 'B' cannot be assigned to type 'Required' */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_6.ets b/ets2panda/test/ast/compiler/ets/requiredType_6.ets index 399456dfc6..e0a5e2c0bd 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_6.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_6.ets @@ -23,4 +23,4 @@ function main(): void { b_class = /* @@ label */req_b; } -/* @@@ label Error TypeError: Type 'Required' cannot be assigned to type 'B' */ +/* @@@ label Error Semantic error ESE0318: Type 'Required' cannot be assigned to type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets index bbd431829c..2901d70a74 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets @@ -23,4 +23,4 @@ function main(): void { let req_b: Required = /* @@ label */{fld: 3.0, fld2: 5.0}; } -/* @@@ label Error TypeError: Class property 'fld3' needs to be initialized for Required. */ +/* @@@ label Error Semantic error ESE0226: Class property 'fld3' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets index b9e237a906..ea1cbc802f 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets @@ -21,4 +21,4 @@ function main(): void { let req_a: Required = new /* @@ label */Required(); } -/* @@@ label Error TypeError: Required type can be instantiated only with object literal */ +/* @@@ label Error Semantic error ESE0053: Required type can be instantiated only with object literal */ diff --git a/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type.ets b/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type.ets index 5cfc8c7864..2db8170373 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 818d4995aa..ad4355ce54 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 b24788ce95..a518f9156b 100644 --- a/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets +++ b/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets @@ -18,9 +18,9 @@ function main() { let r2 = ((a:number, ...args)=> { return args.length; })(1,2,3,4,5) } -/* @@? 17:14 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 17:16 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 17:16 Error TypeError: The type of parameter 'args' cannot be inferred */ -/* @@? 18:14 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 18:26 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 18:26 Error TypeError: The type of parameter 'args' cannot be inferred */ +/* @@? 17:14 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 17:16 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 17:16 Error Semantic error ESE0132: The type of parameter 'args' cannot be inferred */ +/* @@? 18:14 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 18:26 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 18:26 Error Semantic error ESE0132: The type of parameter 'args' cannot be inferred */ diff --git a/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets b/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets index 64f4958d34..7dff151699 100755 --- a/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets +++ b/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets @@ -16,8 +16,8 @@ class Arr { public mp(a: int): FixedArray<()> } -/* @@? 16:11 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:24 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 16:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:37 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 16:37 Error SyntaxError: Unexpected token '>'. */ \ No newline at end of file +/* @@? 16:11 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:24 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 16:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:37 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 16:37 Error Syntax error ESY0227: Unexpected token '>'. */ diff --git a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets index 019bd7f77d..3f057a61e6 100644 --- a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets +++ b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets @@ -22,4 +22,4 @@ function main(): void { let a: int = dummy(); } -/* @@@ label Error TypeError: Missing return value. */ +/* @@@ label Error Semantic error ESE0032: Missing return value. */ diff --git a/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets b/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets index 76d43fc869..4d209685e4 100644 --- a/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error TypeError: Only extension function or a class method can return 'this' */ +/* @@@ label Error Semantic error ESE0031: Only extension function or a class method can return 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets b/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets index ad094e2acc..0ffde51a98 100644 --- a/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets +++ b/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets @@ -23,5 +23,5 @@ abstract class A implements I { } } -/* @@@ label Error TypeError: foo(): A in A cannot override foo(): I in I because overriding return type is not compatible with the other return type. */ -/* @@@ label Error TypeError: Method foo(): A in A not overriding any method */ +/* @@@ label Error Semantic error ESE0141: foo(): A in A cannot override foo(): I in I because overriding return type is not compatible with the other return type. */ +/* @@@ label Error Semantic error ESE0136: Method foo(): A in A not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets index 92b493beb7..e7be58d67e 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets @@ -16,5 +16,5 @@ declare function foo(A:number|undefined|null) declare function foo(A:number|undefined|null) -/* @@? 16:18 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 17:1 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 16:18 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 17:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets index 78955a8122..1a8b16b93e 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets @@ -18,4 +18,4 @@ export class A {} export declare function foo(a:A):void export declare function foo(a:A):number {} -/* @@? 19:49 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:49 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets index 18bdf1ec9e..1a615bef8d 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets @@ -18,4 +18,4 @@ export class A {} export declare function foo(a:A):void export function foo(a:A):number {} -/* @@? 19:8 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 19:8 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets index d1d3c761c8..965f9fc972 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets @@ -17,4 +17,4 @@ declare function foo(a:"str1"):void declare function foo(a:"str2"):void -/* @@? 17:1 Warning Warning: Function foo with this assembly signature already declared. */ +/* @@? 17:1 Warning Warning W0022: Function foo with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/same_name_field_err.ets b/ets2panda/test/ast/compiler/ets/same_name_field_err.ets index fdfa470be3..0159c7c992 100644 --- a/ets2panda/test/ast/compiler/ets/same_name_field_err.ets +++ b/ets2panda/test/ast/compiler/ets/same_name_field_err.ets @@ -23,4 +23,4 @@ function main(): void { arktest.assertEQ(SameName.a, 32); } -/* @@? 19:12 Error TypeError: Variable 'a' has already been declared. */ +/* @@? 19:12 Error Semantic error ESE0351: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets b/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets index 3817c2080e..0c53e2a1f1 100644 --- a/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets +++ b/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets @@ -19,5 +19,5 @@ import { double_3 } from "./ambient_const_vars.ets" import { double_4 } from "./ambient_const_vars.ets" import { double_5 } from "./ambient_const_vars.ets" -/* @@? 17:26 Error TypeError: Imported element not exported 'double_2' */ -/* @@? 19:26 Error TypeError: Imported element not exported 'double_4' */ \ No newline at end of file +/* @@? 17:26 Error Semantic error ESE0355: Imported element not exported 'double_2' */ +/* @@? 19:26 Error Semantic error ESE0355: Imported element not exported 'double_4' */ diff --git a/ets2panda/test/ast/compiler/ets/set_init_without_param.ets b/ets2panda/test/ast/compiler/ets/set_init_without_param.ets index 50710b371e..cfabdc5acc 100644 --- a/ets2panda/test/ast/compiler/ets/set_init_without_param.ets +++ b/ets2panda/test/ast/compiler/ets/set_init_without_param.ets @@ -15,8 +15,8 @@ set a '1;' -/* @@? 16:1 Error SyntaxError: Extension Setter can only have 2 parameters. */ -/* @@? 16:5 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:7 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 22:77 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@? 22:77 Error SyntaxError: Extension Accessor must have a receiver. */ \ No newline at end of file +/* @@? 16:1 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ +/* @@? 16:5 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:7 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 23:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ diff --git a/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets b/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets index 741e45d5f3..11b906beae 100644 --- a/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets @@ -30,6 +30,6 @@ class Class3 { set f(x: string): void {this._f = x} /* @@ label2 */} -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ -/* @@@ label1 Error SyntaxError: Setter must not have return type even if it is void. */ -/* @@@ label2 Error SyntaxError: Setter must not have return type even if it is void. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ +/* @@@ label1 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ +/* @@@ label2 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/compiler/ets/smart_cast.ets b/ets2panda/test/ast/compiler/ets/smart_cast.ets index 226a7a068e..13f8d9d356 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast.ets @@ -24,5 +24,4 @@ function baz(p: "Double") { let s: "Object" = p != undefined ? p : "Double"// should be cte } -/* @@? 24:23 Error TypeError: Type '"Double"' cannot be assigned to type '"Object"' */ - +/* @@? 24:23 Error Semantic error ESE0318: Type '"Double"' cannot be assigned to type '"Object"' */ diff --git a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets index bef75565fa..ea2e261bc2 100644 --- a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets +++ b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets @@ -20,5 +20,5 @@ const b1: Base = { n: 200 } const b2: Base = /* @@ label */{ ...{n: 200} } const c1: Child = /* @@ label1 */{ ...b1, a: "a" } -/* @@@ label Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label1 Error TypeError: The object literal properties must be key-value pairs */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ diff --git a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets index de366a4ce9..7d00742359 100644 --- a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets @@ -21,9 +21,9 @@ function main() { let y2: [boolean, int, string, string] = /* @@ label3 */[true, /* @@ label4 */...x2, /* @@ label5 */...x3] } -/* @@? 18:56 Error TypeError: Initializer has 2 elements, but tuple requires 4 */ -/* @@? 18:72 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 18:94 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:61 Error TypeError: Initializer has 3 elements, but tuple requires 4 */ -/* @@? 21:83 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:105 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 4 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label3 Error Semantic error ESE0231: Initializer has 3 elements, but tuple requires 4 */ +/* @@@ label4 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label5 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/compiler/ets/spread_record.ets b/ets2panda/test/ast/compiler/ets/spread_record.ets index f9782ab974..37ee9684cd 100644 --- a/ets2panda/test/ast/compiler/ets/spread_record.ets +++ b/ets2panda/test/ast/compiler/ets/spread_record.ets @@ -20,12 +20,4 @@ let r3: Record = { ...r1, ...r2 } console.log(...r3) // crash - Issue #26773 -/* @@? 17:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 17:1 Error TypeError: No matching call signature for log(...r1) */ -/* @@? 17:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 17:13 Error TypeError: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ -/* @@? 17:13 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ -/* @@? 20:1 Error TypeError: No matching call signature for log(...r3) */ -/* @@? 20:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 20:13 Error TypeError: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ -/* @@? 20:13 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ +/* @@? 16:9 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets index 5ecd50b4cb..bdd0a7db8d 100644 --- a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets +++ b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets @@ -31,6 +31,6 @@ class Outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 20:9 Error TypeError: Static initializer is not allowed in inner class. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 20:9 Error Semantic error ESE0014: Static initializer is not allowed in inner class. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/compiler/ets/static_index_function1.ets b/ets2panda/test/ast/compiler/ets/static_index_function1.ets index 36c1a7ebd5..cf8422b661 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function1.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function1.ets @@ -27,7 +27,7 @@ function main() { let e = /* @@ label2 */A[/* @@ label3 */'a'] } -/* @@@ label Error TypeError: '$_get' is a static property of 'A' */ -/* @@@ label1 Error TypeError: '$_get' is a static property of 'A' */ -/* @@@ label2 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label3 Error TypeError: '$_get' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: '$_get' is a static property of 'A' */ +/* @@@ label1 Error Semantic error ESE0207: '$_get' is a static property of 'A' */ +/* @@@ label2 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label3 Error Semantic error ESE0207: '$_get' is a static property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/static_index_function2.ets b/ets2panda/test/ast/compiler/ets/static_index_function2.ets index c6ae1e214f..f9434dc2d0 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function2.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function2.ets @@ -26,6 +26,6 @@ function main(): int { return 0 } -/* @@@ label Error TypeError: '$_set' is a static property of 'A' */ -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label2 Error TypeError: '$_set' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: '$_set' is a static property of 'A' */ +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label2 Error Semantic error ESE0207: '$_set' is a static property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/static_index_function3.ets b/ets2panda/test/ast/compiler/ets/static_index_function3.ets index 0f7fdaddb6..19a2c9ca98 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function3.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function3.ets @@ -43,5 +43,5 @@ function main(): int { return 0 } -/* @@? 39:17 Error TypeError: '$_iterator' is a static property of 'C' */ -/* @@? 39:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 39:17 Error Semantic error ESE0207: '$_iterator' is a static property of 'C' */ +/* @@? 39:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets index 68ca4eb5fa..7c18dae641 100644 --- a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets +++ b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets @@ -24,6 +24,6 @@ function main() { arktest.assertEQ(!Color.Red, !10) } -/* @@@ label Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label1 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label2 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label1 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label2 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets b/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets index aa876db244..cfaf315757 100644 --- a/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets +++ b/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets @@ -15,13 +15,13 @@ type A = [n1:string, n2:string] -/* @@? 16:11 Error TypeError: Cannot find type 'n1'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 16:14 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 16:20 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:22 Error SyntaxError: Unexpected token 'n2'. */ -/* @@? 16:25 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:25 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 16:31 Error SyntaxError: Unexpected token ']'. */ +/* @@? 16:11 Error Semantic error ESE0371: Cannot find type 'n1'. */ +/* @@? 16:13 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 16:14 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token 'n2'. */ +/* @@? 16:25 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:25 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/subtype.ets b/ets2panda/test/ast/compiler/ets/subtype.ets index 5207d81c18..5989576a7c 100644 --- a/ets2panda/test/ast/compiler/ets/subtype.ets +++ b/ets2panda/test/ast/compiler/ets/subtype.ets @@ -40,4 +40,4 @@ const factory = new GenericObjectFactory(); const obj = g(factory); obj.give({}); -/* @@? 19:58 Error TypeError: Type argument 'Interface_2' should be a subtype of 'Interface_1'-constraint */ +/* @@? 19:58 Error Semantic error ESE0228: Type argument 'Interface_2' should be a subtype of 'Interface_1'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets index 0299dda17c..1412bd1f42 100644 --- a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets @@ -27,4 +27,4 @@ class B extends A { } } -/* @@@ label Error TypeError: 'super' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'super' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets b/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets index e5cacaf668..21d358e658 100644 --- a/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets +++ b/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets @@ -23,10 +23,5 @@ switch (arg){ break; } -/* @@? 17:7 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 17:7 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 17:7 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 22:5 Error TypeError: Constant expression required */ -/* @@? 22:10 Error SyntaxError: Class cannot be used as object. */ -/* @@? 22:10 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'String' */ +/* @@? 21:9 Error Syntax error ESY0000: Type expected */ +/* @@? 17:7 Error Syntax error ESY0227: Unexpected token 'null'. */ diff --git a/ets2panda/test/ast/compiler/ets/switch_negative_5.ets b/ets2panda/test/ast/compiler/ets/switch_negative_5.ets index d0703f36d3..3324f2d8e1 100644 --- a/ets2panda/test/ast/compiler/ets/switch_negative_5.ets +++ b/ets2panda/test/ast/compiler/ets/switch_negative_5.ets @@ -24,4 +24,4 @@ function main(): void { f(0); } -/* @@? 18:14 Error TypeError: Switch case type 'undefined' is not comparable to discriminant type 'int' */ \ No newline at end of file +/* @@? 18:14 Error Semantic error ESE0262: Switch case type 'undefined' is not comparable to discriminant type 'int' */ diff --git a/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets b/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets index d1499c6e6e..da93732af7 100644 --- a/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets +++ b/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets @@ -31,4 +31,4 @@ class IndexStr { } } -/* @@@ label Error TypeError: Case duplicate */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/compiler/ets/template_fold.ets b/ets2panda/test/ast/compiler/ets/template_fold.ets index c4255f98ba..7a26a0a630 100644 --- a/ets2panda/test/ast/compiler/ets/template_fold.ets +++ b/ets2panda/test/ast/compiler/ets/template_fold.ets @@ -15,5 +15,4 @@ `\0#{(new (Reflect)() ? new () : {f: [], : 2})}${true}` -/* @@? 16:2 Error SyntaxError: Octal escape sequences are not allowed in template strings. */ - +/* @@? 16:2 Error Syntax error ESY0247: Octal escape sequences are not allowed in template strings. */ diff --git a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets index 6ed9b3f87f..e8feb9af28 100644 --- a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets @@ -21,5 +21,5 @@ class Klass { static a: int = 12; } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ -/* @@@ label1 Error TypeError: 'a' is a static property of 'Klass' */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@@ label1 Error Semantic error ESE0207: 'a' is a static property of 'Klass' */ diff --git a/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets b/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets index ff742c6bdd..12d9f45c77 100644 --- a/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets +++ b/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets @@ -19,4 +19,4 @@ ] } -/* @@? 17:28 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:28 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets index 2bb53db77e..260345f5f8 100644 --- a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets +++ b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets @@ -24,4 +24,4 @@ function main(): void { } catch (e) {} } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/compiler/ets/tolocalString.ets b/ets2panda/test/ast/compiler/ets/tolocalString.ets index e2576c4fd4..87e776aa07 100644 --- a/ets2panda/test/ast/compiler/ets/tolocalString.ets +++ b/ets2panda/test/ast/compiler/ets/tolocalString.ets @@ -17,4 +17,4 @@ class A { toLocaleString = () => {} } -/* @@? 16:7 Error TypeError: Cannot inherit from class Object, because field toLocaleString is inherited with a different declaration type */ +/* @@? 16:7 Error Semantic error ESE0216: Cannot inherit from class Object, because field toLocaleString is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/trailing_lambda.ets b/ets2panda/test/ast/compiler/ets/trailing_lambda.ets index 4de45fbe09..08f6c56520 100644 --- a/ets2panda/test/ast/compiler/ets/trailing_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/trailing_lambda.ets @@ -25,8 +25,8 @@ Obb.foos(){} Error().fromEntries() {} -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ -/* @@? 26:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 26:1 Error TypeError: No matching call signature */ -/* @@? 26:9 Error TypeError: 'fromEntries' is a static property of 'Error' */ \ No newline at end of file +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 26:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 26:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 26:9 Error Semantic error ESE0207: 'fromEntries' is a static property of 'Error' */ diff --git a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets index 4efd4a36f8..f359a75f6c 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets @@ -23,4 +23,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Default catch clause should be the last in the try statement */ +/* @@@ label Error Semantic error ESE0034: Default catch clause should be the last in the try statement */ diff --git a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets index b2f1731f60..d8f9c824ed 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets @@ -21,4 +21,4 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets b/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets index 81a718b121..036f03e78b 100644 --- a/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets +++ b/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets @@ -18,4 +18,4 @@ try { let a = 1 } -/* @@? 18:9 Error TypeError: Variable 'a' has already been declared. */ +/* @@? 18:9 Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets index b03095bb29..d6188ec89c 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets @@ -19,4 +19,4 @@ function main(): void { let b: [number, number, number] = /* @@ label */a; } -/* @@@ label Error TypeError: Type '[Double, Double]' cannot be assigned to type '[Double, Double, Double]' */ +/* @@@ label Error Semantic error ESE0318: Type '[Double, Double]' cannot be assigned to type '[Double, Double, Double]' */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets index b6a37f7126..8bba2dbedc 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets @@ -19,4 +19,4 @@ function main(): void { let b: [number, number] = /* @@ label */a; } -/* @@@ label Error TypeError: Type '[Double, Double, Double]' cannot be assigned to type '[Double, Double]' */ +/* @@@ label Error Semantic error ESE0318: Type '[Double, Double, Double]' cannot be assigned to type '[Double, Double]' */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets index ea8e9d99a5..5ee28fd0ee 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets @@ -18,4 +18,4 @@ function main(): void { const array: (number|boolean) [] = tuple } -/* @@? 18:40 Error TypeError: Type '[Double, Double, Boolean]' cannot be assigned to type 'Array' */ +/* @@? 18:40 Error Semantic error ESE0318: Type '[Double, Double, Boolean]' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets index d89ff56fa7..355b361d4c 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets @@ -19,4 +19,4 @@ function main(): void { a[/* @@ label */2]; } -/* @@@ label Error TypeError: Element accessor value is out of tuple size bounds. */ +/* @@@ label Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets index 9ca00bbcd5..e523ec19b1 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets @@ -18,4 +18,4 @@ function main(): void { let a: [number] = /* @@ label */[1, 2]; } -/* @@@ label Error TypeError: Initializer has 2 elements, but tuple requires 1 */ +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 1 */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets index ec42c5f8b7..fe9fe4bb8e 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets @@ -18,4 +18,4 @@ function main(): void { let a: [number, number] = /* @@ label */[1]; } -/* @@@ label Error TypeError: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets index 6ccc172df0..8cdcfdf0ac 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets @@ -18,8 +18,8 @@ function main(): void { let a: [number, ...number[]] = [1]; } -/* @@? 18:21 Error SyntaxError: Invalid Type. */ -/* @@? 18:21 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:21 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:24 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:21 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:21 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:21 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:24 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets index ea48bd251d..096ec7518f 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets @@ -19,8 +19,8 @@ function main(): void { let b: [number, string, Int] = /* @@ label */a; } -/* @@? 18:29 Error SyntaxError: Invalid Type. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 18:37 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:29 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:29 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:29 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 18:37 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets index 34a2d31c5a..aa5d008584 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets @@ -14,5 +14,4 @@ */ let v: [number]|null = ["A"] -/* @@? 15:25 Error TypeError: Array initializer's type is not assignable to tuple type at index: 0 */ - +/* @@? 15:25 Error Semantic error ESE0057: Array initializer's type is not assignable to tuple type at index: 0 */ diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets index 976f1c71f6..df77ce7737 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets @@ -18,4 +18,4 @@ type ValueAlias = Record<"val", V>; declare function value(): ValueAlias; -/* @@@ label Error TypeError: Type argument 'U' should be a subtype of 'String'-constraint */ +/* @@? 16:37 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets index 96cf4d0332..011b2a76d6 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets @@ -20,4 +20,4 @@ declare function value(): ValueAlias; /* @@ label */value(); -/* @@@ label Error TypeError: No matching call signature */ +/* @@? 16:38 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets index 7378bd24f9..5cdb5d8ca1 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets @@ -18,5 +18,4 @@ type A = T; let v: A; -/* @@@ label1 Error TypeError: Type argument 'Int' should be a subtype of 'String'-constraint */ -/* @@@ label2 Error TypeError: Type argument 'String' should be a subtype of 'Numeric'-constraint */ +/* @@? 16:47 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/compiler/ets/typeOfString.ets b/ets2panda/test/ast/compiler/ets/typeOfString.ets index 24481e1f32..ff92028ac5 100644 --- a/ets2panda/test/ast/compiler/ets/typeOfString.ets +++ b/ets2panda/test/ast/compiler/ets/typeOfString.ets @@ -15,4 +15,4 @@ V = typeof `m` -/* @@? 16:1 Error TypeError: Unresolved reference V */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference V */ diff --git a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets index 0e3ad5e269..7f40053e09 100644 --- a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets @@ -19,4 +19,4 @@ class Klass { } } -/* @@@ label Error TypeError: Cannot make a static reference to the non-static type T */ +/* @@@ label Error Semantic error ESE0288: Cannot make a static reference to the non-static type T */ diff --git a/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets b/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets index 3b39e198c9..d2594c9bdc 100644 --- a/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets @@ -15,6 +15,4 @@ export type L T> -/* @@? 16:26 Error TypeError: Cannot find type 'T'. */ -/* @@? 21:1 Error SyntaxError: Expected '=', got 'end of stream'. */ -/* @@? 21:1 Error SyntaxError: Invalid Type. */ +/* @@? 21:1 Error Syntax error ESY0000: '=' expected */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets index 46b03a8e16..6e6d743350 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets @@ -28,12 +28,12 @@ WeakSet [12] = new undefined() // *NOTE* error has printed twice, that is known issue #20560 -/* @@? 16:9 Error TypeError: Type 'null' is not constructible. */ -/* @@? 17:1 Error TypeError: Type 'null' is not constructible. */ -/* @@? 18:1 Error TypeError: Type 'undefined' is not constructible. */ -/* @@? 19:1 Error TypeError: Type 'never' is not constructible. */ -/* @@? 20:1 Error TypeError: This expression is not constructible. */ -/* @@? 23:1 Error TypeError: The union type is not constructible. */ -/* @@? 26:1 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 26:1 Error SyntaxError: Class cannot be used as object. */ -/* @@? 26:16 Error TypeError: Type 'undefined' is not constructible. */ +/* @@? 16:9 Error Semantic error ESE0290: Type 'null' is not constructible. */ +/* @@? 17:1 Error Semantic error ESE0290: Type 'null' is not constructible. */ +/* @@? 18:1 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ +/* @@? 19:1 Error Semantic error ESE0290: Type 'never' is not constructible. */ +/* @@? 20:1 Error Semantic error ESE0292: This expression is not constructible. */ +/* @@? 23:1 Error Semantic error ESE0300: The union type is not constructible. */ +/* @@? 26:1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 26:1 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 26:16 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets index 71e76536db..e5f954ba49 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets @@ -20,4 +20,4 @@ interface inter { function foo(i: Partial>): void {} -/* @@? 18:17 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets index 345a9e3ef7..3feeb6073e 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets @@ -19,11 +19,11 @@ class A { function foo (partial: Partial) {} -/* @@? 17:15 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:16 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token 'break'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:15 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:16 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:16 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token 'break'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets index f3cc9e64c3..e41985955f 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets @@ -37,14 +37,12 @@ type T13 = Required type T14 = Required type T15 = Required -/* @@? 22:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ -/* @@? 24:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ -/* @@? 25:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ - -/* @@? 28:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ -/* @@? 30:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ -/* @@? 31:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ - -/* @@? 34:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ -/* @@? 36:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ -/* @@? 37:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 22:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 24:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 25:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 28:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 30:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 31:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 34:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 36:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 37:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets index 39be4eb79a..46c1df3edc 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets @@ -24,7 +24,7 @@ function foo() { void = [([...asyncGenerator])] } -/* @@? 16:1 Error TypeError: Unresolved reference a */ -/* @@? 20:1 Error TypeError: Unresolved reference c */ -/* @@? 24:5 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 24:18 Error TypeError: Unresolved reference asyncGenerator */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:1 Error Semantic error ESE0143: Unresolved reference c */ +/* @@? 24:5 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 24:18 Error Semantic error ESE0143: Unresolved reference asyncGenerator */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_test2.ets b/ets2panda/test/ast/compiler/ets/type_error_test2.ets index 08c72c921a..ca7c69cc55 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_test2.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_test2.ets @@ -15,17 +15,17 @@ let f:(c:string, ...abe])=>void = (c:be ...abe])=>{} -/* @@? 16:18 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:24 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:24 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:35 Error TypeError: Type '(c: *ERROR_TYPE*) => void' cannot be assigned to type '(c: String, ...abe: *ERROR_TYPE*) => void' */ -/* @@? 16:38 Error TypeError: Cannot find type 'be'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:41 Error SyntaxError: Expected '=>', got '...'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token '...'. */ -/* @@? 16:41 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 16:44 Error SyntaxError: Unexpected token 'abe'. */ -/* @@? 16:44 Error TypeError: Unresolved reference abe */ -/* @@? 16:47 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:49 Error SyntaxError: Unexpected token '=>'. */ +/* @@? 16:18 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:24 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:24 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:35 Error Semantic error ESE0318: Type '(c: *ERROR_TYPE*) => void' cannot be assigned to type '(c: String, ...abe: *ERROR_TYPE*) => void' */ +/* @@? 16:38 Error Semantic error ESE0371: Cannot find type 'be'. */ +/* @@? 16:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:41 Error Syntax error ESY0230: Expected '=>', got '...'. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 16:41 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token 'abe'. */ +/* @@? 16:44 Error Semantic error ESE0143: Unresolved reference abe */ +/* @@? 16:47 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:49 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets b/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets index 80fc58e641..7130f86243 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets @@ -15,4 +15,4 @@ type Type = int; -/* @@? 1:3 Error TypeError: Class 'Type' is already defined with different type. */ +/* @@? 1:3 Error Semantic error ESE0350: Class 'Type' is already defined with different type. */ diff --git a/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets b/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets index b7051016a8..18c9d322d2 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets @@ -23,4 +23,4 @@ function test2(call: ErrorCallBack2) { } // should be error because typeParam ha function test3(call: ErrorCallBack2) { } // should be ok because we have explicitly provided a type. -/* @@? 22:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file +/* @@? 22:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ diff --git a/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets b/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets index 9f91a1fe20..332b14fc54 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets @@ -31,6 +31,6 @@ function test5(call: ErrorCallBack3) { } // should be ok because the sec function test6(call: ErrorCallBack3) { } // should be error -/* @@? 24:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ -/* @@? 26:36 Error TypeError: Expected at least 2 type arguments, but got 1. */ -/* @@? 32:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file +/* @@? 24:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ +/* @@? 26:36 Error Semantic error ESE0274: Expected at least 2 type arguments, but got 1. */ +/* @@? 32:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ diff --git a/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets b/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets index 11c112c76c..cfc295d3d3 100644 --- a/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets +++ b/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets @@ -36,5 +36,5 @@ function main() { } -/* @@@ label1 Error TypeError: Variable 'a2' is used before being assigned. */ -/* @@@ label2 Error TypeError: Variable 'a2' is used before being assigned. */ +/* @@@ label1 Error Semantic error ESE0375: Variable 'a2' is used before being assigned. */ +/* @@@ label2 Error Semantic error ESE0375: Variable 'a2' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets index 5e15bcbf7d..98a5e3dbd5 100644 --- a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets +++ b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets @@ -20,13 +20,4 @@ let pthen = byteP.then((value ? Object): Object => { }); await byteP; -/* @@? 16:30 Error TypeError: Unresolved reference byteFunc */ -/* @@? 17:41 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:41 Error SyntaxError: Expected '=>', got 'identification literal'. */ -/* @@? 17:41 Error SyntaxError: Class cannot be used as object. */ -/* @@? 17:48 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:50 Error SyntaxError: Unexpected token 'Object'. */ -/* @@? 17:50 Error TypeError: The type of parameter 'Object' cannot be inferred */ -/* @@? 18:12 Error TypeError: Unresolved reference value */ -/* @@? 20:2 Error SyntaxError: Unexpected token ')'. */ \ No newline at end of file +/* @@? 17:41 Error Syntax error ESY0000: Unexpected token, expected ')' */ diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets index c5bb53c7eb..e8d78a3be2 100644 --- a/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets +++ b/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets @@ -15,4 +15,4 @@ function foo(a?){} -/* @@? 16:16 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file +/* @@? 16:14 Error Semantic error ESE0000: Parameter a implicitly has any type. */ diff --git a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets index f03ea9734f..b8286a9fe5 100644 --- a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets @@ -51,10 +51,10 @@ function main() { arktest.assertEQ(/* @@ label8 */u.fld8, new Map()) } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label8 Error TypeError: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label3 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label4 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label5 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label6 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label7 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label8 Error Semantic error ESE0244: Member type must be the same for all union objects. */ diff --git a/ets2panda/test/ast/compiler/ets/unionType_clone.ets b/ets2panda/test/ast/compiler/ets/unionType_clone.ets index 1af439f0e8..3c3e4a1ba2 100644 --- a/ets2panda/test/ast/compiler/ets/unionType_clone.ets +++ b/ets2panda/test/ast/compiler/ets/unionType_clone.ets @@ -22,16 +22,16 @@ function castValueKoBoolean(value ?: boolect) { if (value instanceof String) { value += "Hello Smar/* -/* @@? 16:38 Error TypeError: Cannot find type 'boolect'. */ -/* @@? 17:26 Error TypeError: Cannot find type 'Sean'. */ -/* @@? 21:3 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:5 Error SyntaxError: Unexpected token 'xml'. */ -/* @@? 21:5 Error TypeError: Unresolved reference xml */ -/* @@? 21:36 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:36 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:38 Error SyntaxError: Unexpected token 'Object'. */ -/* @@? 21:38 Error SyntaxError: Class cannot be used as object. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 23:18 Error SyntaxError: Newline is not allowed in strings */ -/* @@? 37:70 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:38 Error Semantic error ESE0371: Cannot find type 'boolect'. */ +/* @@? 17:26 Error Semantic error ESE0371: Cannot find type 'Sean'. */ +/* @@? 21:3 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:5 Error Syntax error ESY0227: Unexpected token 'xml'. */ +/* @@? 21:5 Error Semantic error ESE0143: Unresolved reference xml */ +/* @@? 21:36 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:36 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:38 Error Syntax error ESY0227: Unexpected token 'Object'. */ +/* @@? 21:38 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:46 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 23:18 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 37:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_array_declaration.ets b/ets2panda/test/ast/compiler/ets/union_array_declaration.ets index f64c5e85df..67d76009bf 100644 --- a/ets2panda/test/ast/compiler/ets/union_array_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/union_array_declaration.ets @@ -21,4 +21,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Can't resolve array type */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/union_field_access.ets b/ets2panda/test/ast/compiler/ets/union_field_access.ets index 33cb90075f..5a5ddc3ec0 100644 --- a/ets2panda/test/ast/compiler/ets/union_field_access.ets +++ b/ets2panda/test/ast/compiler/ets/union_field_access.ets @@ -28,4 +28,4 @@ function IfWithString(val: U) { return /* @@ label */val['kind'] === 'B' } -/* @@@ label Error TypeError: Indexed access is not supported for such expression type. */ +/* @@@ label Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/compiler/ets/union_field_access_2.ets b/ets2panda/test/ast/compiler/ets/union_field_access_2.ets index 8f9fd60420..c5a6b48627 100644 --- a/ets2panda/test/ast/compiler/ets/union_field_access_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_field_access_2.ets @@ -17,13 +17,13 @@ (a ? delete arguments==({: false, Float64Array: []}) : [ArrayBuffer[false]]) -/* @@? 18:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 18:2 Error TypeError: Unresolved reference a */ -/* @@? 18:6 Error TypeError: Types cannot be modified at runtime with 'delete'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error TypeError: Unresolved reference arguments */ -/* @@? 18:24 Error TypeError: need to specify target type for class composite */ -/* @@? 18:26 Error SyntaxError: Unexpected token. */ -/* @@? 18:28 Error SyntaxError: Unexpected token. */ -/* @@? 18:54 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 18:76 Error SyntaxError: Unexpected token ')'. */ +/* @@? 18:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 18:2 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 18:6 Error Semantic error ESE55815: Types cannot be modified at runtime with 'delete'. */ +/* @@? 18:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Semantic error ESE0143: Unresolved reference arguments */ +/* @@? 18:24 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 18:26 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:54 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 18:76 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets b/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets index df0895904f..2ddb2b017b 100644 --- a/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets +++ b/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets @@ -42,7 +42,7 @@ function main() { arktest.assertEQ(u4.fld, 'a') } -/* @@? 38:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 39:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 41:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 42:22 Error TypeError: Member type must be the same for all union objects. */ +/* @@? 38:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 39:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 41:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 42:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ diff --git a/ets2panda/test/ast/compiler/ets/union_method_4.ets b/ets2panda/test/ast/compiler/ets/union_method_4.ets index ec919acd34..83c43c7ddd 100644 --- a/ets2panda/test/ast/compiler/ets/union_method_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_method_4.ets @@ -31,7 +31,7 @@ function bar(x: A|B) { /* @@ label2 */x.bar("123") } -/* @@@ label Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Signature bar(v: String): void is not visible here. */ -/* @@@ label2 Error TypeError: No matching call signature for bar("123") */ +/* @@@ label Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0139: Signature bar(v: String): void is not visible here. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for bar("123") */ diff --git a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets index 01d75715b7..8727b81b38 100644 --- a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets +++ b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets @@ -24,4 +24,4 @@ let a = new A(); (a as AVoidNumber).foo !== undefined -/* @@? 25:1 Error TypeError: Overloaded method is used as value */ +/* @@? 25:1 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets index 4ca936f70b..8c010e6ea1 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets @@ -18,4 +18,4 @@ function foo(a: T) { return a } -/* @@@ label Error TypeError: Type '"abc"' cannot be assigned to type 'T' */ +/* @@@ label Error Semantic error ESE0318: Type '"abc"' cannot be assigned to type 'T' */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets index 2f55423922..f35fc3379c 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets @@ -23,5 +23,5 @@ function main(): void { /* @@ label */foo<"abc">(/* @@ label1 */"ff"); } -/* @@@ label1 Error TypeError: Type '"ff"' is not compatible with type '"abc"' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("ff") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("ff") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"ff"' is not compatible with type '"abc"' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets index d3fdd89efb..a0bd7e30b4 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets @@ -16,4 +16,4 @@ type UT = "abc" | "bcd" | "cde" let a: UT = /* @@ label */"abcde" -/* @@@ label Error TypeError: Type '"abcde"' cannot be assigned to type '"abc"|"bcd"|"cde"' */ +/* @@@ label Error Semantic error ESE0318: Type '"abcde"' cannot be assigned to type '"abc"|"bcd"|"cde"' */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets index e23cc141a4..9cbdf6c316 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets @@ -17,4 +17,4 @@ function f1(x: number|string, y: boolean|null): boolean { return /* @@ label */x == y } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types 'Double|String' and 'Boolean|null'. */ +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types 'Double|String' and 'Boolean|null'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets index fe111c8edc..2ec71ff6cd 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets @@ -24,4 +24,4 @@ function main() { } } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types '"a"|"b"|"c"' and '"d"'. */ +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types '"a"|"b"|"c"' and '"d"'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets index f723e13d18..6b6cb35f6d 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets @@ -20,5 +20,5 @@ function foo(a: "aa"|"bb") { let x = ["aa", "bb", "aa"] // type of x is FixedArray let y = foo(x) -/* @@? 21:9 Error TypeError: No matching call signature for foo(Array) */ -/* @@? 21:13 Error TypeError: Type 'Array' is not compatible with type '"aa"|"bb"' at index 1 */ +/* @@? 21:9 Error Semantic error ESE0127: No matching call signature for foo(Array) */ +/* @@? 21:13 Error Semantic error ESE0046: Type 'Array' is not compatible with type '"aa"|"bb"' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets index 1b84b36edd..6b0fdf369a 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets @@ -22,5 +22,5 @@ declare let cond: boolean; let x = cond ? "aa" : "bb" // type of x is string let y = foo(x) -/* @@? 23:13 Error TypeError: Type 'String' is not compatible with type '"aa"|"bb"' at index 1 */ -/* @@? 23:9 Error TypeError: No matching call signature for foo(String) */ +/* @@? 23:9 Error Semantic error ESE0127: No matching call signature for foo(String) */ +/* @@? 23:13 Error Semantic error ESE0046: Type 'String' is not compatible with type '"aa"|"bb"' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/union_types_2.ets b/ets2panda/test/ast/compiler/ets/union_types_2.ets index 8359a4b770..1c5a8381f0 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_2.ets @@ -39,4 +39,4 @@ function main() { foo(x); } -/* @@@ label Error TypeError: Property 'num' does not exist on type 'A' */ +/* @@@ label Error Semantic error ESE0087: Property 'num' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/union_types_4.ets b/ets2panda/test/ast/compiler/ets/union_types_4.ets index f22ce635f5..3532f21967 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_4.ets @@ -30,4 +30,4 @@ function main() { x = /* @@ label */new B(); // CTE } -/* @@@ label Error TypeError: Type 'B' cannot be assigned to type 'String|Short|A' */ +/* @@@ label Error Semantic error ESE0318: Type 'B' cannot be assigned to type 'String|Short|A' */ diff --git a/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets b/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets index b13724b2d1..ce193aba69 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets @@ -31,4 +31,4 @@ for (const item of testValues) { processValue(item); } -/* @@? 19:26 Error TypeError: Object type doesn't have proper iterator method. */ +/* @@? 19:26 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ diff --git a/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets b/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets index 81037bd2a5..439a86843a 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 9347301cc3..ee9911a6ef 100644 --- a/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets +++ b/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets @@ -19,4 +19,4 @@ function foo>(record: Record>){ foo({}) -/* @@? 16:39 Error TypeError: Cannot find type 'A'. */ +/* @@? 16:51 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets index f2dff3a5f0..19f01e7816 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets @@ -37,5 +37,5 @@ function main() { let a = (new A).b } -/* @@? 28:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ +/* @@? 28:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets index f2b2c5a559..12278a2ac2 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets @@ -23,5 +23,5 @@ export function atomicTask() { return Atomics.load(shareArray, 0); } -/* @@? 21:17 Error TypeError: Unresolved reference shareArray */ -/* @@? 23:12 Error TypeError: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ +/* @@? 21:17 Error Semantic error ESE0143: Unresolved reference shareArray */ +/* @@? 23:12 Error Semantic error ESE0142: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets index d5901ed027..1681cda02d 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets @@ -16,5 +16,5 @@ import {atomicTask} from "./file1" const task = new taskpool.Task(atomicTask); -/* @@? file1.ets:23:12 Error TypeError: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ -/* @@? file1.ets:23:25 Error TypeError: Unresolved reference shareArray */ +/* @@? file1.ets:23:12 Error Semantic error ESE0142: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ +/* @@? file1.ets:23:25 Error Semantic error ESE0143: Unresolved reference shareArray */ diff --git a/ets2panda/test/ast/compiler/ets/update_const.ets b/ets2panda/test/ast/compiler/ets/update_const.ets index 15ffd43067..4c7eb7e475 100644 --- a/ets2panda/test/ast/compiler/ets/update_const.ets +++ b/ets2panda/test/ast/compiler/ets/update_const.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */++c; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a constant variable c */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets index df09abb5e1..f919fbce9d 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets @@ -16,4 +16,4 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets index 1b1cd257ac..1540c1d929 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets @@ -16,4 +16,4 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets index e0a410adc7..4f9da0a5c1 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets @@ -16,4 +16,4 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets index b048662c57..abc0e348b3 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets @@ -17,4 +17,4 @@ import {A as A} from "./export1.ets" "use static" import {B as B} from "./export2.ets" -/* @@? 18:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 18:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets index ee44269d82..a3751f02a0 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets @@ -20,5 +20,5 @@ let str2:String = "use static" import {A as A} from "../export1.ets" import {B as B} from "../export2.ets" -/* @@? 20:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 21:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 20:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 21:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets index 55490f06d0..79768c473d 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets @@ -20,6 +20,6 @@ package usestaticpackage3; import {A as A} from "../export1.ets" import {B as B} from "../export2.ets" -/* @@? 19:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 20:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 21:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 19:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 20:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 21:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets index ae374bb21f..037cf8693c 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets @@ -17,4 +17,4 @@ package usestaticpackage2; "use static" -/* @@? 18:1 Error SyntaxError: Invalid package toplevel statement */ +/* @@? 18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets index 551145bbe7..a20310c946 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets @@ -16,4 +16,4 @@ package usestaticpackage2; -/* @@? flag_package.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ +/* @@? flag_package.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets b/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets index f549a860b8..0bede715cf 100644 --- a/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets +++ b/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets @@ -25,5 +25,5 @@ class X { } } -/* @@? 16:34 Error TypeError: Cannot find type 'any'. */ -/* @@? 23:14 Error TypeError: Target type for class composite needs to be an object type, found 'T' */ \ No newline at end of file +/* @@? 16:34 Error Semantic error ESE0371: Cannot find type 'any'. */ +/* @@? 23:14 Error Semantic error ESE0063: Target type for class composite needs to be an object type, found 'T' */ diff --git a/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets b/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets index a7b4bf5973..827514f79a 100644 --- a/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets +++ b/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets @@ -17,6 +17,6 @@ function main() : void { let e: Float = /* @@ label */new Float(6,"3"); } -/* @@@ label Error TypeError: Expected 0 arguments, got 2. */ -/* @@@ label Error TypeError: Expected 1 arguments, got 2. */ -/* @@@ label Error TypeError: No matching construct signature for std.core.Float(Int, "3") */ +/* @@@ label Error Semantic error ESE0124: Expected 0 arguments, got 2. */ +/* @@@ label Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@@ label Error Semantic error ESE0127: No matching construct signature for std.core.Float(Int, "3") */ diff --git a/ets2panda/test/ast/compiler/ets/var_declaration.ets b/ets2panda/test/ast/compiler/ets/var_declaration.ets index 2411ac75f8..8f1a8bd057 100644 --- a/ets2panda/test/ast/compiler/ets/var_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/var_declaration.ets @@ -16,4 +16,4 @@ // (arkts-no-var) var x = 42; - /* @@? 17:6 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ \ No newline at end of file + /* @@? 17:6 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ diff --git a/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets b/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets index b4321b87c8..15d7c6af13 100644 --- a/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets @@ -15,6 +15,6 @@ let negative%%_ = 1 -/* @@? 16:13 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:13 Error SyntaxError: Unexpected token '%'. */ -/* @@? 16:15 Error TypeError: Unresolved reference _ */ +/* @@? 16:13 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token '%'. */ +/* @@? 16:15 Error Semantic error ESE0143: Unresolved reference _ */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets index fe3e8ad43e..97a9c76cb9 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets @@ -42,11 +42,11 @@ class A{ paramsFunc7(a:T1, b:/* @@ label8 */T2, c:T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label6 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label7 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label8 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets index 25d2d0d5cd..44a2cf77ad 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets @@ -42,17 +42,17 @@ class A{ paramsFunc7(a:T1/* @@ label13 */[], b:T2/* @@ label14 */[], c:T3[]){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label9 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label10 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label11 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label12 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label13 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label14 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets index 23d0400140..094b84d594 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets @@ -49,13 +49,13 @@ class A{ paramsFunc3(a:B){} } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label4 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets index d481632145..ca085b31c6 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets @@ -42,15 +42,15 @@ class A{ paramsFunc7(a:(a:(a:(a:T2)=>T1)=>T2)=>T1){} } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label6 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label7 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label8 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label9 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label10 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@? 40:37 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@? 41:40 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets index 824b06a2ce..90ea4abf89 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets @@ -19,5 +19,5 @@ class A{ paramsFunc1(a:T1, b:/* @@ label2 */T2, c:T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label2 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets index fd735fe396..e535c3df0f 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets @@ -29,7 +29,7 @@ class B8 extends A2{} class B9 extends A2{} class B10 extends /* @@ label4 */A2{} -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets index 9c96f4d421..c6f9479b0b 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets @@ -31,8 +31,8 @@ class A123{ readonly readonlyfield12:B; } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets index 374aa69fb3..b8bd87286a 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets @@ -38,11 +38,11 @@ class A{ paramsFunc3(a:[number,T3,string]){} } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets index 24c2b074ed..b17b808bfe 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets @@ -67,23 +67,23 @@ class A123{ paramsFunc7(a:/* @@ label18 */T1|T2|T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label15 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label16 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label17 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label18 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label8 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label9 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label10 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label11 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label12 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label13 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label14 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label15 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label16 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label17 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label18 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets index 92db5f8ba8..09be3620bc 100644 --- a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets +++ b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets @@ -20,6 +20,6 @@ function main(): void { arktest.assertTrue(false || check()) } -/* @@? 20:3 Error TypeError: No matching call signature for assertTrue(Boolean|void) */ -/* @@? 20:22 Error TypeError: Type 'Boolean|void' is not compatible with type 'Boolean' at index 1 */ -/* @@? 20:31 Error TypeError: Cannot use type 'void' as value. */ +/* @@? 20:3 Error Semantic error ESE0127: No matching call signature for assertTrue(Boolean|void) */ +/* @@? 20:22 Error Semantic error ESE0046: Type 'Boolean|void' is not compatible with type 'Boolean' at index 1 */ +/* @@? 20:31 Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets index 619efc697f..ef41a97362 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets @@ -17,4 +17,4 @@ async function foo():Promise{ return void; } -/* @@? 17:12 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 17:12 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets index 50e646c928..f5674c2a19 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets @@ -20,4 +20,4 @@ async function foo():Promise{ return test() } -/* @@? 20:12 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Promise | Int' */ \ No newline at end of file +/* @@? 20:12 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Promise | Int' */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets index 3b5b16d39b..423178030a 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets @@ -14,5 +14,5 @@ */ function foo (): void let y = foo() -/* @@? 16:9 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 15:10 Error TypeError: Only abstract or native methods can't have body. */ +/* @@? 15:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:9 Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets index 2e919669e2..be60615195 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets @@ -25,4 +25,4 @@ function bar(value:A){ const x = /* @@ label */foo(value) } -/* @@@ label Error TypeError: Cannot use type 'void' as value. */ +/* @@@ label Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets index e2ce9f8526..1ebaf24c1b 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets @@ -13,4 +13,4 @@ * limitations under the License. */ let x: /* @@ label */void -/* @@@ label Error TypeError: 'void' used as type annotation. */ +/* @@@ label Error Semantic error ESE0232: 'void' used as type annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets index 3608ddbfd2..707cf14df6 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets @@ -17,4 +17,4 @@ function foo(x: T) {} foo(void) -/* @@? 18:11 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 18:11 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets index bafb8f9d54..3356e90708 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets @@ -24,5 +24,4 @@ function main(): void { foo(void_function()); } -/* @@? 24:9 Error TypeError: Cannot use type 'void' as value. */ - +/* @@? 24:9 Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets b/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets index c9f2d161ac..bb5ab2d602 100644 --- a/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets +++ b/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets @@ -26,5 +26,5 @@ class C { class D extends C{} -/* @@? 19:13 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:12 Error TypeError: Variable 'C' has already been declared. */ \ No newline at end of file +/* @@? 19:13 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:12 Error Semantic error ESE0351: Variable 'C' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets b/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets index 05b98fcb0a..f6eff312cb 100755 --- a/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets +++ b/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets @@ -16,8 +16,8 @@ package xgc_ea const SHARED_OBJECTS_COUNT: testResult, "test20 $2" -/* @@? 17:7 Error SyntaxError: Missing initialization for const package property */ -/* @@? 17:29 Error TypeError: Cannot find type 'testResult'. */ -/* @@? 17:41 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 17:41 Error SyntaxError: Number, string or computed value property name 'test20 $2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 23:95 Error SyntaxError: Variable must be initialized or it's type must be declared. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 17:29 Error Semantic error ESE0371: Cannot find type 'testResult'. */ +/* @@? 17:41 Error Syntax error ESY0315: Number, string or computed value property name 'test20 $2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 17:41 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 24:1 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts index b4df110fe0..b2951cb921 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a - "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts index 584984578f..7c272699a3 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a / "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts index ad3bfff331..845e75923f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a / 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts index c4e280fc09..c3343eb8bd 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a / false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts index b471f46f74..650817ea18 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a % "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts index 1dde7eeb07..10b1e67bb1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a % 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts index 029a290002..1dec7f6ef2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a % false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts index 04045be9fd..025393a57d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a++; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts index 92a37d24df..df1c0fb46c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a--; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts index 81e94d8af5..af1d437bda 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a - /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts index ccbd0e9154..461f84f701 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a - /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts index 8c96f0b69d..7d01837c52 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a - 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts index 978a410dde..ed27b340ba 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a * /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts index 1c19bfa1c7..ec32dac9e3 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a * /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts index b26469e8da..320dcce4e3 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a ** /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts index fa6eca101e..447b7dc26d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a ** /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts index e188e20bd9..fb495299c6 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a / /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts index 7e4bb19c70..6ef55c680a 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a / /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts index d765cb8e7f..d37d756f2c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a % /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts index d79940233d..40794f137f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a % /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts index 87774020b0..dfdbddb15d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a + "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts index ad0517fd6b..9ec0f7fd69 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a + 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts index 90e274c552..56c4110b3f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a - false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts index e4fae10f88..ecf01c3a20 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a + false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts index 112ea2f4ed..79b96f32af 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a - "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts index f3368d0510..745c7d0027 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a - 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts index 3e3635f9c3..7f214e7486 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a - false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts index 8de905de63..079df22b35 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a * "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts index a79f49c798..b03d52abe0 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a * 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts index a7f187943c..04c125c62a 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a * false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts index 74942114e6..a19783926c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a ** "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts index 970a477e73..48ea44f7a3 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a ** 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts index 40934154db..ba2f3e5d89 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a ** false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts index e6f4632d57..0c7ff9d92b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a * "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts index f185ea530d..98f3e48b34 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a / "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts index 5a47a1481f..6deb5f4073 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a / 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts index 4dbafc1f72..c570f7b586 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a / false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts index fd3c11c11c..d47d43205a 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a % "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts index b503012de9..9340d45382 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a % 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts index b4ca9e2ddf..8db3d2ab8f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a % false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts index 5fa2d96052..ea5e9bee70 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a++; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts index 3c4a1a669f..92ecb95bbd 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a--; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts index 089b320e3b..43ffea7d92 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a - "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts index fb99c55fd7..77aec61270 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a - 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts index 7a5889f687..afe030208b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a * 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts index 8a113e24d5..72a8f670b1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a - false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts index ac298c91ab..e5d45a3a6a 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a * "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts index 144258cbcb..fafd0d5cc4 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a * 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts index c80a5e1f31..725d3a608c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a * false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts index 33aa017e3f..1be9ac9d99 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a ** "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts index b3070b9b3f..2fc10f62b9 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a ** 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts index 9f4945b3d2..0809419526 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a ** false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts index 06e229926d..e380d1c100 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a / "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts index 035cde3acb..a49e59bc1d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a / 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts index 53d48ba21a..6eb9351341 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a / false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts index 19244de69e..93cc55ccdc 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a * false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts index 7681fc6662..9bc801d5b0 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a % "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts index b847adcc02..4390863e2d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a % 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts index 600390ac72..0537037f72 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a % false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts index ca0cd875d0..8888ba0a75 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a++; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts index d001b3deeb..e1a2abab2a 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a--; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts index f7b7e66376..84f57a7885 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a ** "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts index e9fd942100..ff107e14e0 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a ** 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts index 3298123944..6061cede1f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a ** false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts index c498295dec..81854db054 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts @@ -15,4 +15,4 @@ var /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts index 9744312f35..1b26513160 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts @@ -16,4 +16,4 @@ var [a = 6, b, ...c] = [, "foo", true, {}]; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '[boolean, { }]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '[boolean, { }]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts index a0ce8489ae..cd9bb4fae2 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts @@ -16,4 +16,4 @@ var [...a] = [1, "foo", true]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '[number, string, boolean]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '[number, string, boolean]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts index 66a9012411..f872180930 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts @@ -16,4 +16,4 @@ var /* @@ label */[a = 5, ...b]: [number, string, boolean] | string[] | number = ["foo", "bar"]; -/* @@@ label Error TypeError: Type [number, string, boolean] | string[] | number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type [number, string, boolean] | string[] | number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts index b71abf955c..f6922a85dd 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts @@ -17,4 +17,4 @@ var a: [number, string, number]; var [b, c] = a; /* @@ label */b = {} -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts index 6ff3cb5888..65b9cdebd7 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts @@ -16,4 +16,4 @@ var a: number; var /* @@ label */[b = 6, c = 6] = a; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts index 4354b90229..550e8a0e37 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts @@ -16,4 +16,4 @@ var a: [number]; var /* @@ label */[b, c] = a; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts index 4a9abe03f1..f414f9fb48 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts @@ -17,4 +17,4 @@ var a: [string]; var [b, c = "foo"] = a; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts index 621bb201cf..0483e55c57 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts @@ -19,4 +19,4 @@ function a(a: number, b: string): [number, string] { } var /* @@ label */[b, c, d] = a(1, "bar"); -/* @@@ label Error TypeError: Tuple type [number, string] of length 2 has no element at index 2. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number, string] of length 2 has no element at index 2. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts index c0730a2d6c..55fada2736 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts @@ -16,4 +16,4 @@ var [...a]: [number, string] | boolean[] | [bigint, void, {}] = [true, false]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '(number | string | boolean | bigint | void | { })[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '(number | string | boolean | bigint | void | { })[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts index 96a3983ebf..dd6db35d76 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts @@ -17,4 +17,4 @@ var [a, ...b]: [number, string] | boolean[] | [bigint, void, {}] = [true, false]; /* @@ label */b = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '(string | boolean | void | { })[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '(string | boolean | void | { })[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts index 4e74feb108..e60483cdda 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts @@ -16,4 +16,4 @@ var [a = 1] = []; /* @@ label */a = "foo" -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts index df0a552a2b..43b613322c 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts @@ -15,4 +15,4 @@ var [a, /* @@ label */[b, c]] = [1, 2]; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts index 3a5679fab2..fb6a264c30 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts @@ -15,4 +15,4 @@ var [/* @@ label */[a, b]] = [[1]]; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts index 97a17a7981..711c786f30 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts @@ -15,4 +15,4 @@ var [a, [/* @@ label */a, b] = [1, 2]] = [1, ["foo"]]; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'string | number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts index c805d73088..4851d4e731 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts @@ -15,4 +15,4 @@ var [a, /* @@ label */[b, c] = [1]] = [1, ["foo"]]; -/* @@@ label Error TypeError: Property 1 does not exist on type [string] | [number]. */ +/* @@@ label Error Semantic error ESE0000: Property 1 does not exist on type [string] | [number]. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts index 3cd31db7c1..d19c60dbae 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts @@ -16,4 +16,4 @@ var [a, [b, c] = [true, "foo"]] = [1, ["foo", { a: "foo" }]]; c = { /* @@ label */a: 5 } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts index 970ee6f488..715322ead4 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts @@ -15,4 +15,4 @@ var [a, .../* @@ label */[b, c]] = [1, 2]; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts index c0a4f5543f..ef6aaf7f67 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts @@ -15,4 +15,4 @@ var [a = 5, /* @@ label */{ b, c }] = [, { b: 5 }] -/* @@@ label Error TypeError: Property c does not exist on type { b: number; }. */ +/* @@@ label Error Semantic error ESE0000: Property c does not exist on type { b: number; }. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts index 76b31b203d..26b01a799e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts @@ -15,4 +15,4 @@ var [.../* @@ label */[b = 6, c = "foo", d]]: [number, number | string] = [1, 2]; -/* @@@ label Error TypeError: Tuple type [number, number | string] of length 2 has no element at index 2. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number, number | string] of length 2 has no element at index 2. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts index 41061dd22e..7ed9c4335c 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts @@ -16,4 +16,4 @@ var [a, [{ b = 6, c: foo }, [d = 6, e]]] = [1, [{ c: 2 }, [1, "foo"]]]; /* @@ label */e = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts index 18948b1654..09b1614dc2 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts @@ -16,4 +16,4 @@ var a:number; /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts index 22c2e7fe0d..8d6bd088c6 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts @@ -16,4 +16,4 @@ var [a = 1] = ["foo"]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts index a453dfa250..d865492882 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts @@ -17,4 +17,4 @@ var a:number; var b: number; /* @@ label */[a = 5, b] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts index 06993d96a6..9b5977c9ef 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts @@ -16,4 +16,4 @@ var a:number; [/* @@ label */a = "foo"] = []; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts index 79c920800c..26a867e1c6 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts @@ -15,4 +15,4 @@ /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts index 3d520eba7b..3f7215604d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts @@ -16,4 +16,4 @@ var a: number; [/* @@ label */a] = ["foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts index 994216bb61..3106d65b6e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts @@ -17,4 +17,4 @@ var a: number; var b = 5; /* @@ label */[a] = b; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts index c8677ee35a..17dca2346f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts @@ -17,4 +17,4 @@ var a: string | number; [/* @@ label */a = 2] = [false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts index f7b6795c88..7b1d1802f1 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts @@ -20,4 +20,4 @@ var c:string; var d = []; var e = ["foo", 5] as const; [a, [/* @@ label */b, , c = "bar"] = e, ...d] = [{}, [42, , "foo" + 2]]; -/* @@@ label Error TypeError: Type 'number | "foo"' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number | "foo"' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts index 51364e40c8..277c9da132 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts @@ -19,4 +19,4 @@ var b: number; var c:string; var d = []; [a, [/* @@ label */b, , c = "bar"] = ["foo", 5], ...d] = [{}, [42, , "foo" + 2]]; -/* @@@ label Error TypeError: Type 'number | string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number | string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts index 80161bd03d..1c67270234 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts @@ -16,4 +16,4 @@ var a:number; [/* @@ label */[a]] = [[]]; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts index 2b5f14d5a9..32913083a0 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts @@ -17,4 +17,4 @@ var a:number; var b: number; [/* @@ label */[a = 5, b]] = [[]]; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts index c43edc8e63..06e61a43fa 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts @@ -15,4 +15,4 @@ var /* @@ label */[a]: [number, string] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts index 00c6168a37..eb6468a374 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts @@ -16,4 +16,4 @@ var a: number; [[/* @@ label */a]] = [["foo"]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts index d98a4fff2a..364febea57 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts @@ -17,4 +17,4 @@ var a: number; var b = 5; [/* @@ label */[a]] = [b]; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts index 4fed3c2d9d..138a8055c9 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts @@ -17,4 +17,4 @@ var a: string[]; [/* @@ label */a] = [["foo", 1]] -/* @@@ label Error TypeError: Type '(string | number)[]' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '(string | number)[]' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts index e06fe27072..5a35c37b54 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts @@ -17,4 +17,4 @@ var a: string[]; [.../* @@ label */a] = [2] -/* @@@ label Error TypeError: Type '[number]' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[number]' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts index 28fcb4e4ca..8d36ed8db9 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts @@ -18,4 +18,4 @@ var a: string[]; var b: string[]; [[.../* @@ label */b], ...a] = [["foo", false], "foo"] -/* @@@ label Error TypeError: Type '[string, boolean]' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[string, boolean]' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts index b4e7d277d7..97aa64a9e2 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts @@ -15,4 +15,4 @@ var [a = 1, /* @@ label */b = "foo"]: [number, number] = [1, 1]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts index e606ec7ee1..cd32e85413 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts @@ -16,4 +16,4 @@ var [a, b]: number[] | [string, number] = [1, 2]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts index 38886463cf..b7c449e5e9 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts @@ -15,4 +15,4 @@ var /* @@ label */[a = [1, "foo"], b] = [[true, false],]; -/* @@@ label Error TypeError: Tuple type [boolean[]] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [boolean[]] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts index a4e7dd1c27..285678a08a 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts @@ -16,4 +16,4 @@ var [a = [1, "foo"], b] = [[true, false], ["foo", "bar"]]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'boolean[] | (number | string)[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'boolean[] | (number | string)[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts index 1010f3edf0..5107daca22 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts @@ -16,4 +16,4 @@ var [a, ...b] = [1]; /* @@ label */b = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_1.ts b/ets2panda/test/ast/compiler/ts/array_1.ts index 4da4ca40a7..f9d9574a18 100644 --- a/ets2panda/test/ast/compiler/ts/array_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_1.ts @@ -17,4 +17,4 @@ var a: string[]; a = ["foo",/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_10.ts b/ets2panda/test/ast/compiler/ts/array_10.ts index 0080174960..4224d423dc 100644 --- a/ets2panda/test/ast/compiler/ts/array_10.ts +++ b/ets2panda/test/ast/compiler/ts/array_10.ts @@ -17,4 +17,4 @@ var a: number[]; a = [/* @@ label */false,5]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_11.ts b/ets2panda/test/ast/compiler/ts/array_11.ts index f7c0ebd077..2b5d4dc071 100644 --- a/ets2panda/test/ast/compiler/ts/array_11.ts +++ b/ets2panda/test/ast/compiler/ts/array_11.ts @@ -17,4 +17,4 @@ var a: number[]; a = [5,/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_12.ts b/ets2panda/test/ast/compiler/ts/array_12.ts index 5b59a2c2b6..388e48cf59 100644 --- a/ets2panda/test/ast/compiler/ts/array_12.ts +++ b/ets2panda/test/ast/compiler/ts/array_12.ts @@ -17,4 +17,4 @@ var a: number[]; a = [/* @@ label */5n,5]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_13.ts b/ets2panda/test/ast/compiler/ts/array_13.ts index 1c45f58c9e..38c5a3d4c7 100644 --- a/ets2panda/test/ast/compiler/ts/array_13.ts +++ b/ets2panda/test/ast/compiler/ts/array_13.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [5n,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_14.ts b/ets2panda/test/ast/compiler/ts/array_14.ts index 8c522efc78..a93de3299e 100644 --- a/ets2panda/test/ast/compiler/ts/array_14.ts +++ b/ets2panda/test/ast/compiler/ts/array_14.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [/* @@ label */"foo",5n]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_15.ts b/ets2panda/test/ast/compiler/ts/array_15.ts index 204a8deeb6..bcb7500e81 100644 --- a/ets2panda/test/ast/compiler/ts/array_15.ts +++ b/ets2panda/test/ast/compiler/ts/array_15.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [5n,/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_16.ts b/ets2panda/test/ast/compiler/ts/array_16.ts index fe73df66ce..f428d46053 100644 --- a/ets2panda/test/ast/compiler/ts/array_16.ts +++ b/ets2panda/test/ast/compiler/ts/array_16.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [/* @@ label */5,5n]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_17.ts b/ets2panda/test/ast/compiler/ts/array_17.ts index 4c65b581da..9d9cf5ac2e 100644 --- a/ets2panda/test/ast/compiler/ts/array_17.ts +++ b/ets2panda/test/ast/compiler/ts/array_17.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [5n,/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_18.ts b/ets2panda/test/ast/compiler/ts/array_18.ts index 78ccba6066..f4f4652be9 100644 --- a/ets2panda/test/ast/compiler/ts/array_18.ts +++ b/ets2panda/test/ast/compiler/ts/array_18.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [/* @@ label */false,5n]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_19.ts b/ets2panda/test/ast/compiler/ts/array_19.ts index 16d04de9f7..95923c08aa 100644 --- a/ets2panda/test/ast/compiler/ts/array_19.ts +++ b/ets2panda/test/ast/compiler/ts/array_19.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [false,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_2.ts b/ets2panda/test/ast/compiler/ts/array_2.ts index 3f4610f833..18640ee5f3 100644 --- a/ets2panda/test/ast/compiler/ts/array_2.ts +++ b/ets2panda/test/ast/compiler/ts/array_2.ts @@ -17,4 +17,4 @@ var a: string[]; a = [/* @@ label */5,"foo"]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_20.ts b/ets2panda/test/ast/compiler/ts/array_20.ts index 54e950a1b0..d43e2abcd0 100644 --- a/ets2panda/test/ast/compiler/ts/array_20.ts +++ b/ets2panda/test/ast/compiler/ts/array_20.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [/* @@ label */"foo",false]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_21.ts b/ets2panda/test/ast/compiler/ts/array_21.ts index f5edbeae5f..ae0f5a109d 100644 --- a/ets2panda/test/ast/compiler/ts/array_21.ts +++ b/ets2panda/test/ast/compiler/ts/array_21.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [false,/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_22.ts b/ets2panda/test/ast/compiler/ts/array_22.ts index fd8140c030..2cee65e9b2 100644 --- a/ets2panda/test/ast/compiler/ts/array_22.ts +++ b/ets2panda/test/ast/compiler/ts/array_22.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [/* @@ label */5,false]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_23.ts b/ets2panda/test/ast/compiler/ts/array_23.ts index 6a857ce7ab..76d648312b 100644 --- a/ets2panda/test/ast/compiler/ts/array_23.ts +++ b/ets2panda/test/ast/compiler/ts/array_23.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [false,/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_24.ts b/ets2panda/test/ast/compiler/ts/array_24.ts index 9962bbabaa..f5a6785b6a 100644 --- a/ets2panda/test/ast/compiler/ts/array_24.ts +++ b/ets2panda/test/ast/compiler/ts/array_24.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [/* @@ label */5n,false]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_3.ts b/ets2panda/test/ast/compiler/ts/array_3.ts index 07e01e1643..fec24d7cf1 100644 --- a/ets2panda/test/ast/compiler/ts/array_3.ts +++ b/ets2panda/test/ast/compiler/ts/array_3.ts @@ -17,4 +17,4 @@ var a: string[]; a = ["foo",/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_4.ts b/ets2panda/test/ast/compiler/ts/array_4.ts index 63f84b6fc7..ab006b29f6 100644 --- a/ets2panda/test/ast/compiler/ts/array_4.ts +++ b/ets2panda/test/ast/compiler/ts/array_4.ts @@ -17,4 +17,4 @@ var a: string[]; a = [/* @@ label */false,"foo"]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_5.ts b/ets2panda/test/ast/compiler/ts/array_5.ts index b503fe78f1..80d81507e8 100644 --- a/ets2panda/test/ast/compiler/ts/array_5.ts +++ b/ets2panda/test/ast/compiler/ts/array_5.ts @@ -17,4 +17,4 @@ var a: string[]; a = ["foo",/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_6.ts b/ets2panda/test/ast/compiler/ts/array_6.ts index 9088cac682..65d0e35dbd 100644 --- a/ets2panda/test/ast/compiler/ts/array_6.ts +++ b/ets2panda/test/ast/compiler/ts/array_6.ts @@ -17,4 +17,4 @@ var a: string[]; a = [/* @@ label */5n,"foo"]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_7.ts b/ets2panda/test/ast/compiler/ts/array_7.ts index 3f85b981ad..f5ce25a34a 100644 --- a/ets2panda/test/ast/compiler/ts/array_7.ts +++ b/ets2panda/test/ast/compiler/ts/array_7.ts @@ -17,4 +17,4 @@ var a: number[]; a = [5,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_8.ts b/ets2panda/test/ast/compiler/ts/array_8.ts index e8a9d9ce19..123a26ddbf 100644 --- a/ets2panda/test/ast/compiler/ts/array_8.ts +++ b/ets2panda/test/ast/compiler/ts/array_8.ts @@ -17,4 +17,4 @@ var a: number[]; a = [/* @@ label */"foo",5]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_9.ts b/ets2panda/test/ast/compiler/ts/array_9.ts index 980a84631f..aa4a4f46ff 100644 --- a/ets2panda/test/ast/compiler/ts/array_9.ts +++ b/ets2panda/test/ast/compiler/ts/array_9.ts @@ -17,4 +17,4 @@ var a: number[]; a = [5,/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_expression_1.ts b/ets2panda/test/ast/compiler/ts/array_expression_1.ts index c32dd810c2..47a7977c92 100644 --- a/ets2panda/test/ast/compiler/ts/array_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_expression_1.ts @@ -15,4 +15,4 @@ let a = [1, [1, 2]: /* @@ label */number[]]; -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_1.ts b/ets2panda/test/ast/compiler/ts/as_expression_1.ts index 242c1a3e54..de305c5354 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_1.ts @@ -16,4 +16,4 @@ var a = /* @@ label */"foo" as number; -/* @@@ label Error TypeError: Conversion of type 'string' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. */ +/* @@@ label Error Semantic error ESE0322: Conversion of type 'string' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_10.ts b/ets2panda/test/ast/compiler/ts/as_expression_10.ts index a69ac80516..928365f411 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_10.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'readonly [5, 5, 5, 5]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'readonly [5, 5, 5, 5]'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_11.ts b/ets2panda/test/ast/compiler/ts/as_expression_11.ts index 83b01bcd06..c2d798e0f8 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_11.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[0] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_12.ts b/ets2panda/test/ast/compiler/ts/as_expression_12.ts index 204228ed3a..16be651f06 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_12.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[1] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_13.ts b/ets2panda/test/ast/compiler/ts/as_expression_13.ts index eb28f472b7..82d166f5fa 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_13.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[2] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_14.ts b/ets2panda/test/ast/compiler/ts/as_expression_14.ts index bfa5334853..67cabc5b24 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_14.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[3] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_15.ts b/ets2panda/test/ast/compiler/ts/as_expression_15.ts index 3f347808fa..0074e760e3 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_15.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a[/* @@ label */4] = 5; -/* @@@ label Error TypeError: Property 4 does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property 4 does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_2.ts b/ets2panda/test/ast/compiler/ts/as_expression_2.ts index 9dd4da307a..c258d73362 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_2.ts @@ -17,4 +17,4 @@ var a: any; /* @@ label */a as const; -/* @@@ label Error TypeError: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals. */ +/* @@@ label Error Semantic error ESE0000: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_3.ts b/ets2panda/test/ast/compiler/ts/as_expression_3.ts index c78b013f65..8b42968872 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_3.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a = [5, 5, 5, /* @@ label */"bar"]; -/* @@@ label Error TypeError: Type '"bar"' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '"bar"' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_4.ts b/ets2panda/test/ast/compiler/ts/as_expression_4.ts index 60c9fe4da8..5c4f6d2190 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_4.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; a = [5,/* @@ label */4,5,5]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_5.ts b/ets2panda/test/ast/compiler/ts/as_expression_5.ts index 8f82e3c230..535a642888 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_5.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; a = [5,5,/* @@ label */4,5]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_6.ts b/ets2panda/test/ast/compiler/ts/as_expression_6.ts index a1796f4510..328bbf7708 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_6.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a = [5, 5, 5, /* @@ label */4]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_7.ts b/ets2panda/test/ast/compiler/ts/as_expression_7.ts index 6d588ccd6d..ea4b6bb5ce 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_7.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a = [5,5,5,5,5]; -/* @@@ label Error TypeError: Type '[5, 5, 5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[5, 5, 5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_8.ts b/ets2panda/test/ast/compiler/ts/as_expression_8.ts index 7ddec25794..1b01711594 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_8.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a = [5,5,5]; -/* @@@ label Error TypeError: Type '[5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_9.ts b/ets2panda/test/ast/compiler/ts/as_expression_9.ts index 703cf597ad..8f3d984c7e 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_9.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a = [/* @@ label */"foo", 5]; -/* @@@ label Error TypeError: Type '"foo"' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '"foo"' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/assignment_never.ts b/ets2panda/test/ast/compiler/ts/assignment_never.ts index 091bbc8bab..664373ff33 100644 --- a/ets2panda/test/ast/compiler/ts/assignment_never.ts +++ b/ets2panda/test/ast/compiler/ts/assignment_never.ts @@ -16,4 +16,4 @@ let /* @@ label */a: never = null; -/* @@@ label Error TypeError: Type 'null' is not assignable to type 'never'. */ +/* @@@ label Error Semantic error ESE0000: Type 'null' is not assignable to type 'never'. */ diff --git a/ets2panda/test/ast/compiler/ts/call_expression_1.ts b/ets2panda/test/ast/compiler/ts/call_expression_1.ts index 4ed34489fb..9ba7ec93ba 100644 --- a/ets2panda/test/ast/compiler/ts/call_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/call_expression_1.ts @@ -15,4 +15,4 @@ let a = /* @@ label */new 5; -/* @@@ label Error TypeError: This expression is not callable. */ +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts index 9ff07215e4..f713ab8c6f 100644 --- a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts +++ b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts @@ -17,4 +17,4 @@ const a = 5; /* @@ label */a = 5; -/* @@@ label Error TypeError: Cannot assign to a because it is a constant. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to a because it is a constant. */ diff --git a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts index 4d1d22043b..ad789e02c4 100644 --- a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts @@ -16,4 +16,4 @@ a + 2; const a = 6; -/* @@? 18:7 Error TypeError: Block-scoped variable 'a' used before its declaration */ +/* @@? 18:7 Error Semantic error ESE0000: Block-scoped variable 'a' used before its declaration */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_1.ts b/ets2panda/test/ast/compiler/ts/functionCall_1.ts index fa5c2fa539..22f765e6be 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_1.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_1.ts @@ -18,4 +18,4 @@ function func(a : number) : void { } func(/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_10.ts b/ets2panda/test/ast/compiler/ts/functionCall_10.ts index c36629caf7..2e56c465b1 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_10.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_10.ts @@ -16,4 +16,4 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; /* @@ label */func(); -/* @@@ label Error TypeError: Expected 1-2 arguments, but got 0 */ +/* @@@ label Error Semantic error ESE0000: Expected 1-2 arguments, but got 0 */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_11.ts b/ets2panda/test/ast/compiler/ts/functionCall_11.ts index 7e63899cb9..5210394f93 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_11.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_11.ts @@ -16,4 +16,4 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; func(/* @@ label */1); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_12.ts b/ets2panda/test/ast/compiler/ts/functionCall_12.ts index 761fbc0c62..2cf22f27a3 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_12.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_12.ts @@ -16,4 +16,4 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; var /* @@ label */a: string = func(1, "foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_13.ts b/ets2panda/test/ast/compiler/ts/functionCall_13.ts index 4bab17ad9f..5272d0f4a6 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_13.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_13.ts @@ -17,4 +17,4 @@ var func: { (a?: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; var /* @@ label */a: string = func(); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_14.ts b/ets2panda/test/ast/compiler/ts/functionCall_14.ts index c6d18f89c4..1aae498cdc 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_14.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_14.ts @@ -17,4 +17,4 @@ var func: { (a?: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; var /* @@ label */a: string = func(1); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_15.ts b/ets2panda/test/ast/compiler/ts/functionCall_15.ts index 3699080e8a..1cfbe4d07a 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_15.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_15.ts @@ -17,4 +17,4 @@ var func: { (a: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; /* @@ label */func(); -/* @@@ label Error TypeError: Expected at least 1 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected at least 1 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_2.ts b/ets2panda/test/ast/compiler/ts/functionCall_2.ts index b54016745f..50f3ae0625 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_2.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_2.ts @@ -22,4 +22,4 @@ function func2(a : number) : string{ return "foo"; } func1(/* @@ label */func2(5)); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_3.ts b/ets2panda/test/ast/compiler/ts/functionCall_3.ts index 95965c5e2b..7c9266744f 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_3.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_3.ts @@ -16,4 +16,4 @@ function func(a : number) : void { } func(5, /* @@ label */5); -/* @@@ label Error TypeError: Expected 1 arguments, but got 2. */ +/* @@@ label Error Semantic error ESE0000: Expected 1 arguments, but got 2. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_4.ts b/ets2panda/test/ast/compiler/ts/functionCall_4.ts index ad430c9de1..c7db0b7591 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_4.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_4.ts @@ -19,4 +19,4 @@ function func(a: number) : number { return a < 0 ? func(a) : a; } func(/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_5.ts b/ets2panda/test/ast/compiler/ts/functionCall_5.ts index 9e9a36b2b2..6e8a6b3e51 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_5.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_5.ts @@ -19,4 +19,4 @@ function func(a: number, b: string, ...c) { } /* @@ label */func() -/* @@@ label Error TypeError: Expected at least 2 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected at least 2 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_6.ts b/ets2panda/test/ast/compiler/ts/functionCall_6.ts index a10ea87281..cab018abd8 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_6.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_6.ts @@ -17,4 +17,4 @@ function func(/* @@ label */...a: string) { return 6; } -/* @@@ label Error TypeError: A rest parameter must be of an array type */ +/* @@@ label Error Semantic error ESE0000: A rest parameter must be of an array type */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_7.ts b/ets2panda/test/ast/compiler/ts/functionCall_7.ts index 0f68125482..0e37e3194a 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_7.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_7.ts @@ -19,4 +19,4 @@ function func(...a: string[]) { } func(/* @@ label */2); -/* @@@ label Error TypeError: Argument of type 'number' is not assignable to parameter of type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Argument of type 'number' is not assignable to parameter of type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_8.ts b/ets2panda/test/ast/compiler/ts/functionCall_8.ts index 585a0034a4..5dc0dea6ab 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_8.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_8.ts @@ -18,4 +18,4 @@ function func(a?: number, ...c: string[]) { } func(/* @@ label */"bar") -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_9.ts b/ets2panda/test/ast/compiler/ts/functionCall_9.ts index ab372c59a9..0063a73199 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_9.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_9.ts @@ -19,4 +19,4 @@ function func(a: number, b: string, c?: number[]) { } /* @@ label */func(1); -/* @@@ label Error TypeError: Expected 2-3 arguments, but got 1 */ +/* @@@ label Error Semantic error ESE0000: Expected 2-3 arguments, but got 1 */ diff --git a/ets2panda/test/ast/compiler/ts/functionOverload3.ts b/ets2panda/test/ast/compiler/ts/functionOverload3.ts index 5629257472..ff5d1229f6 100644 --- a/ets2panda/test/ast/compiler/ts/functionOverload3.ts +++ b/ets2panda/test/ast/compiler/ts/functionOverload3.ts @@ -19,4 +19,4 @@ function foo(a: string | number, b: string, c: number): number; function foo(a: string | number, b?: string, c?: number) { return "foo"; } -/* @@@ label Error TypeError: This overload signature is not compatible with its implementation signature */ +/* @@@ label Error Semantic error ESE0000: This overload signature is not compatible with its implementation signature */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts index 789085d752..357cabb68f 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts @@ -19,4 +19,4 @@ function foo([{ x = 6 }, y = "foo", z] = [{ x: "foo" }, 2, 3]) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ([{ x }, y, z]?: [{ x: string; }, number, number]) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ([{ x }, y, z]?: [{ x: string; }, number, number]) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts index a7c6eca2cb..631d3160d0 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([3, { b: [true, []], /* @@ label */t: 5 }, 5n], {}); -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: { a: number; b: bigint; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: { a: number; b: bigint; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts index 9d0772086a..74274bfbaa 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([2, { b: [true, []], t: { a: 1, /* @@ label */z: "foo" } }, 5n], {}); -/* @@@ label Error TypeError: Object literal may only specify known properties, and "z" does not exist in type '{ a: number; b: { a: number; b: bigint; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "z" does not exist in type '{ a: number; b: { a: number; b: bigint; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts index eea59d2b35..3b1acf3fb6 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo(["foo", {}, 5n], { r: [[/* @@ label */"foo"]] }); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts index 20b78adc61..4eeb6acd28 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts @@ -19,4 +19,4 @@ function foo({ x = 6, y = "foo" } = { x: "foo" }) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ({ x, y }?: { x?: string; y?: string; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ({ x, y }?: { x?: string; y?: string; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts index 88e8ef801b..dcf95a079a 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts @@ -19,4 +19,4 @@ function foo({ x: { asd }, y: { t = 6, r = "foo" } = { t: "foo" } }) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ({ x: { asd }, y: { t, r } }: { x?: { asd: any; }; y?: { t: string; }; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ({ x: { asd }, y: { t, r } }: { x?: { asd: any; }; y?: { t: string; }; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts index 2421b9b8a0..b69ffedd77 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts @@ -19,4 +19,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ({ a, b: { t }, d: [e, f] }?: { a: boolean; b?: { t: number; }; d?: [number, [string, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ({ a, b: { t }, d: [e, f] }?: { a: boolean; b?: { t: number; }; d?: [number, [string, string]]; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts index b2d2f1e01c..b5984e777a 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts @@ -19,4 +19,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } foo({ /* @@ label */a: 5 }); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts index f88b71f93c..0657b2d061 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts @@ -19,4 +19,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } foo({ a: false, b: { /* @@ label */r: "foo " } }); -/* @@@ label Error TypeError: Object literal may only specify known properties, and "r" does not exist in type '{ t: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "r" does not exist in type '{ t: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts index 618cb363d4..c2e2011780 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts @@ -20,4 +20,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", foo({ a: false, b: { t: 7 }, d: [2, /* @@ label */5n] }); -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts index 5795cb9bf0..56332422b3 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ([a, { b: [c, d], t }]: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], { r: [[r, z]] }: { r?: [[number, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ([a, { b: [c, d], t }]: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], { r: [[r, z]] }: { r?: [[number, string]]; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts index f3a8ce75d5..ac1eaa41ac 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([1, { /* @@ label */b: [] }, 5n], {}); -/* @@@ label Error TypeError: Type '[]' is not assignable to type '[boolean, (bigint | string)[]]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[]' is not assignable to type '[boolean, (bigint | string)[]]'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts index 1ebfe5e5b5..87428652dc 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */string { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts index e8548497ab..a974d1168e 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts @@ -18,4 +18,4 @@ function foo(): boolean { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts index 21221e0f67..2129771927 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */never { } -/* @@@ label Error TypeError: A function returning 'never' cannot have a reachable end point. */ +/* @@@ label Error Semantic error ESE0000: A function returning 'never' cannot have a reachable end point. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts index d5698855e1..b3ae6f465c 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts @@ -18,4 +18,4 @@ function foo(): string { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts index 436a6e6126..39d44851f2 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts @@ -18,4 +18,4 @@ function foo(): string { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts index aabb94e87d..0d858ffc4f 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts @@ -17,4 +17,4 @@ function foo(): number { } -/* @@? 17:17 Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@? 17:17 Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts index f55b4ba295..8e4b919486 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts @@ -18,4 +18,4 @@ function foo(): number { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts index 98c394ba3a..f5ebb7e61f 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */bigint { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts index cd2aa5cb1a..b5c02d6ba5 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts @@ -18,4 +18,4 @@ function foo(): bigint { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts index 1a8491554f..75dc913b2e 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts @@ -18,4 +18,4 @@ function foo(): bigint { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts index 7b97900d1c..93dd9addda 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */boolean { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts index cf4fe2fd59..06a64abfa0 100644 --- a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts @@ -19,4 +19,4 @@ var a: number; var b: typeof a; b = 12; /* @@ label */foo = 4; -/* @@@ label Error TypeError: Cannot find name foo */ +/* @@@ label Error Semantic error ESE0000: Cannot find name foo */ diff --git a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts index 28e5943c2a..a944a801e4 100644 --- a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts +++ b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts @@ -18,4 +18,4 @@ let b = /* @@ label */(a?: number) -/* @@@ label Error SyntaxError: Unexpected token '?'. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token '?'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_1.ts b/ets2panda/test/ast/compiler/ts/in_1.ts index 617029b45d..5c3079b508 100644 --- a/ets2panda/test/ast/compiler/ts/in_1.ts +++ b/ets2panda/test/ast/compiler/ts/in_1.ts @@ -18,4 +18,4 @@ var a: null; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: Object is possibly 'null'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'null'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_10.ts b/ets2panda/test/ast/compiler/ts/in_10.ts index 85053a7f8c..a80de7037f 100644 --- a/ets2panda/test/ast/compiler/ts/in_10.ts +++ b/ets2panda/test/ast/compiler/ts/in_10.ts @@ -18,4 +18,4 @@ var a: (string|number); var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_11.ts b/ets2panda/test/ast/compiler/ts/in_11.ts index 3614d6b8c8..9d1e4e720c 100644 --- a/ets2panda/test/ast/compiler/ts/in_11.ts +++ b/ets2panda/test/ast/compiler/ts/in_11.ts @@ -18,4 +18,4 @@ var a: any; var b: string; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_12.ts b/ets2panda/test/ast/compiler/ts/in_12.ts index 96d24d9ef2..e705d293af 100644 --- a/ets2panda/test/ast/compiler/ts/in_12.ts +++ b/ets2panda/test/ast/compiler/ts/in_12.ts @@ -18,4 +18,4 @@ var a: any; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_13.ts b/ets2panda/test/ast/compiler/ts/in_13.ts index 78c2a69b4e..dca1aacfc1 100644 --- a/ets2panda/test/ast/compiler/ts/in_13.ts +++ b/ets2panda/test/ast/compiler/ts/in_13.ts @@ -18,4 +18,4 @@ var a: any; var b: bigint; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_14.ts b/ets2panda/test/ast/compiler/ts/in_14.ts index 7a053849b9..a38ed0270c 100644 --- a/ets2panda/test/ast/compiler/ts/in_14.ts +++ b/ets2panda/test/ast/compiler/ts/in_14.ts @@ -18,4 +18,4 @@ var a: any; var b: boolean; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_15.ts b/ets2panda/test/ast/compiler/ts/in_15.ts index a41c1faa58..66d4212445 100644 --- a/ets2panda/test/ast/compiler/ts/in_15.ts +++ b/ets2panda/test/ast/compiler/ts/in_15.ts @@ -18,4 +18,4 @@ var a: any; var b: (string|number|bigint|boolean); a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_2.ts b/ets2panda/test/ast/compiler/ts/in_2.ts index 4389b8a403..1596a319d9 100644 --- a/ets2panda/test/ast/compiler/ts/in_2.ts +++ b/ets2panda/test/ast/compiler/ts/in_2.ts @@ -18,4 +18,4 @@ var a: any; var b: null; a in /* @@ label */b; -/* @@@ label Error TypeError: Object is possibly 'null'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'null'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_3.ts b/ets2panda/test/ast/compiler/ts/in_3.ts index fda6da2f13..237089a164 100644 --- a/ets2panda/test/ast/compiler/ts/in_3.ts +++ b/ets2panda/test/ast/compiler/ts/in_3.ts @@ -18,4 +18,4 @@ var a: undefined; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: Object is possibly 'undefined'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'undefined'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_4.ts b/ets2panda/test/ast/compiler/ts/in_4.ts index a72542ad4d..85ddc8e952 100644 --- a/ets2panda/test/ast/compiler/ts/in_4.ts +++ b/ets2panda/test/ast/compiler/ts/in_4.ts @@ -18,4 +18,4 @@ var a: any; var b: undefined; a in /* @@ label */b; -/* @@@ label Error TypeError: Object is possibly 'undefined'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'undefined'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_5.ts b/ets2panda/test/ast/compiler/ts/in_5.ts index 9d72f02200..30da08f972 100644 --- a/ets2panda/test/ast/compiler/ts/in_5.ts +++ b/ets2panda/test/ast/compiler/ts/in_5.ts @@ -18,4 +18,4 @@ var a: bigint; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_6.ts b/ets2panda/test/ast/compiler/ts/in_6.ts index 68ee2dcd20..7b7fb58e5d 100644 --- a/ets2panda/test/ast/compiler/ts/in_6.ts +++ b/ets2panda/test/ast/compiler/ts/in_6.ts @@ -18,4 +18,4 @@ var a: boolean; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_7.ts b/ets2panda/test/ast/compiler/ts/in_7.ts index e7a22a78a9..1d3e3d4e16 100644 --- a/ets2panda/test/ast/compiler/ts/in_7.ts +++ b/ets2panda/test/ast/compiler/ts/in_7.ts @@ -18,4 +18,4 @@ var a: (string|number|bigint|boolean); var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_8.ts b/ets2panda/test/ast/compiler/ts/in_8.ts index 94de51b0de..aeef3c7833 100644 --- a/ets2panda/test/ast/compiler/ts/in_8.ts +++ b/ets2panda/test/ast/compiler/ts/in_8.ts @@ -18,4 +18,4 @@ var a: number; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_9.ts b/ets2panda/test/ast/compiler/ts/in_9.ts index d9dd4f90de..e73c07bb54 100644 --- a/ets2panda/test/ast/compiler/ts/in_9.ts +++ b/ets2panda/test/ast/compiler/ts/in_9.ts @@ -18,4 +18,4 @@ var a: string; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_1.ts b/ets2panda/test/ast/compiler/ts/instanceof_1.ts index c46e0d84cd..e598ac9a3c 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_1.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_1.ts @@ -18,4 +18,4 @@ var a: string; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_10.ts b/ets2panda/test/ast/compiler/ts/instanceof_10.ts index 6ca860b73e..93f099da8b 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_10.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_10.ts @@ -18,4 +18,4 @@ var a: any; var b: string; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_11.ts b/ets2panda/test/ast/compiler/ts/instanceof_11.ts index c43d215afb..cacb462ca0 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_11.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_11.ts @@ -18,4 +18,4 @@ var a: any; var b: number; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_12.ts b/ets2panda/test/ast/compiler/ts/instanceof_12.ts index e3bd9a3b14..dcf78325ad 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_12.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_12.ts @@ -18,4 +18,4 @@ var a: any; var b: bigint; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_13.ts b/ets2panda/test/ast/compiler/ts/instanceof_13.ts index 3e53a6fe80..ea28a51d96 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_13.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_13.ts @@ -18,4 +18,4 @@ var a: any; var b: boolean; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_14.ts b/ets2panda/test/ast/compiler/ts/instanceof_14.ts index fc376f5cbc..2d4c04db09 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_14.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_14.ts @@ -18,4 +18,4 @@ var a: any; var b: (string|number|bigint|boolean); a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_2.ts b/ets2panda/test/ast/compiler/ts/instanceof_2.ts index 7ded04e5f3..1efa81c378 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_2.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_2.ts @@ -19,4 +19,4 @@ a = "foo"; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_3.ts b/ets2panda/test/ast/compiler/ts/instanceof_3.ts index 7fc54d01fa..02c8e0d24f 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_3.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_3.ts @@ -18,4 +18,4 @@ var a: number; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_4.ts b/ets2panda/test/ast/compiler/ts/instanceof_4.ts index 1bce045f7e..96c4d0d737 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_4.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_4.ts @@ -19,4 +19,4 @@ a = 5; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_5.ts b/ets2panda/test/ast/compiler/ts/instanceof_5.ts index d4bfafc583..eccdf510c6 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_5.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_5.ts @@ -18,4 +18,4 @@ var a: bigint; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_6.ts b/ets2panda/test/ast/compiler/ts/instanceof_6.ts index 9d06062aa1..b17b972194 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_6.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_6.ts @@ -19,4 +19,4 @@ a = 5n; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_7.ts b/ets2panda/test/ast/compiler/ts/instanceof_7.ts index e812fc52a3..4abf76973f 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_7.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_7.ts @@ -18,4 +18,4 @@ var a: boolean; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_8.ts b/ets2panda/test/ast/compiler/ts/instanceof_8.ts index da918b1aa1..c8c38bb38b 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_8.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_8.ts @@ -19,4 +19,4 @@ a = false; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_9.ts b/ets2panda/test/ast/compiler/ts/instanceof_9.ts index dabe86c77a..1c4fe3bb30 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_9.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_9.ts @@ -18,4 +18,4 @@ var a: (string|number|bigint|boolean); var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts index 61def49250..d85f4dd5c9 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts @@ -24,4 +24,4 @@ interface A { b: string; } -/* @@@ label Error TypeError: Type '{ a: 5; }' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; }' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts index 5c3c7f0aa9..2c637cda20 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts @@ -28,4 +28,4 @@ var a: A; var b: B; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'B' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type 'B' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts index 5233066ecc..b99bf09444 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts @@ -36,4 +36,4 @@ var a: A; a = d; /* @@ label */d = a; -/* @@@ label Error TypeError: Type 'A' is not assignable to type 'D'. */ +/* @@@ label Error Semantic error ESE0000: Type 'A' is not assignable to type 'D'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts index 2f1c49d495..0d23183164 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts @@ -20,4 +20,4 @@ interface A { } var a: A = { a: 1, b: [true, "foo", /* @@ label */2] }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts index a574145848..eeac95ffdb 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts @@ -27,4 +27,4 @@ interface C extends B, A, B { } var /* @@ label */c: C = { a: 2, c: "foo" }; -/* @@@ label Error TypeError: Type '{ a: 2; c: "foo"; }' is not assignable to type 'C'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 2; c: "foo"; }' is not assignable to type 'C'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts index a5a6ab3c6b..5c8442bfdd 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts @@ -21,4 +21,4 @@ interface A { var a: A = { /* @@ label */5: "foo" }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts index 4074efbc89..c437c97df0 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts @@ -21,4 +21,4 @@ interface A { } var /* @@ label */a: A = { a: 5, b: "foo" }; -/* @@@ label Error TypeError: Type '{ a: 5; b: "foo"; }' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; b: "foo"; }' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts index d7f49cc71b..3c1aa98b60 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts @@ -26,4 +26,4 @@ var a: A; var b: B; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'B' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type 'B' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts index 53075fd0bf..c400a45c9c 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts @@ -25,4 +25,4 @@ interface B extends A { interface C extends B { } -/* @@@ label Error TypeError: Type A recursively references itself as a base type. */ +/* @@@ label Error Semantic error ESE0312: Type A recursively references itself as a base type. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts index fbf5cf39c7..dcefc6cabe 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts @@ -21,4 +21,4 @@ interface A { interface /* @@ label */B extends A { a: string; } -/* @@@ label Error TypeError: Interface 'B' incorrectly extends interface 'A' */ +/* @@@ label Error Semantic error ESE0320: Interface 'B' incorrectly extends interface 'A' */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts index 8be14c0002..8128d36d73 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts @@ -21,4 +21,4 @@ interface A { interface B extends A { /* @@ label */5: boolean; } -/* @@@ label Error TypeError: Property '5' of type 'boolean' is not assignable to numeric index type 'number'. */ +/* @@@ label Error Semantic error ESE0324: Property '5' of type 'boolean' is not assignable to numeric index type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts index 2b47dd814e..6ac2e208ca 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts @@ -25,4 +25,4 @@ interface B { } interface /* @@ label */C extends A, B { } -/* @@@ label Error TypeError: Interface 'C' incorrectly extends interface 'B' */ +/* @@@ label Error Semantic error ESE0320: Interface 'C' incorrectly extends interface 'B' */ diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts index cf2c2eee10..fbdced5296 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts @@ -27,4 +27,4 @@ var foo: B; foo.a.b.b.a.c./* @@ label */r -/* @@@ label Error TypeError: Property r does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property r does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts index e66a8cfbcf..bf1907f350 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts @@ -18,4 +18,4 @@ interface A { [x: string]: boolean, /* @@ label */a: string; } -/* @@@ label Error TypeError: Property 'a' of type 'string' is not assignable to string index type 'boolean'. */ +/* @@@ label Error Semantic error ESE0327: Property 'a' of type 'string' is not assignable to string index type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts index 9a2ea92c82..f95aebb16e 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts @@ -23,4 +23,4 @@ interface a { var b = /* @@ label */a; -/* @@@ label Error TypeError: a only refers to a type, but is being used as a value here. */ +/* @@@ label Error Semantic error ESE0000: a only refers to a type, but is being used as a value here. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts index e8fa920161..d46277a3b0 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts @@ -19,4 +19,4 @@ interface A { [x: string]: number, } -/* @@@ label Error TypeError: Number index info type string is not assignable to string index info type number. */ +/* @@@ label Error Semantic error ESE0000: Number index info type string is not assignable to string index info type number. */ diff --git a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts index e1f8a1835f..171b4260f0 100644 --- a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts @@ -17,4 +17,4 @@ a = 2; let /* @@ label */a: number; -/* @@@ label Error TypeError: Block-scoped variable 'a' used before its declaration */ +/* @@@ label Error Semantic error ESE0000: Block-scoped variable 'a' used before its declaration */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts index f2236407f2..08b86117b7 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts @@ -21,4 +21,4 @@ var b: a; b.foo = 2; b.bar = "bar"; b./* @@ label */foobar = 2; -/* @@@ label Error TypeError: Property foobar does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property foobar does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts index eb8546f51e..22bcaf3542 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts @@ -26,4 +26,4 @@ var c: b; var d: a; c.foobar = d; c.foobar./* @@ label */foobar = b; -/* @@@ label Error TypeError: Property foobar does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property foobar does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts index 64e8caf0b6..1ec64feddf 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts @@ -25,4 +25,4 @@ interface c { } var a5: c; /* @@ label */a5.bar.foo[0].a.bar = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts index 8ddbc99240..07634e0ce9 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts @@ -25,4 +25,4 @@ interface b extends a { var c: b; /* @@ label */c.a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts index d0ff77a08c..7930202d8b 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts @@ -25,4 +25,4 @@ interface b extends a { var c: b; /* @@ label */c.d = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts index b664a3e76f..25b5a71ba2 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts @@ -27,4 +27,4 @@ var a: A | B; a.a; a.b; a./* @@ label */d; -/* @@@ label Error TypeError: Property d does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property d does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_1.ts b/ets2panda/test/ast/compiler/ts/member_expression_1.ts index 31df7d9154..7a0ee5b907 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_1.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_10.ts b/ets2panda/test/ast/compiler/ts/member_expression_10.ts index 3c607912f9..9b7899e065 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_10.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_11.ts b/ets2panda/test/ast/compiler/ts/member_expression_11.ts index ed5e4e49bc..1aa9572b9c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_11.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_12.ts b/ets2panda/test/ast/compiler/ts/member_expression_12.ts index 01571e817a..b6a336ede6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_12.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_13.ts b/ets2panda/test/ast/compiler/ts/member_expression_13.ts index 4afe3c085b..bb350f4fe6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_13.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_14.ts b/ets2panda/test/ast/compiler/ts/member_expression_14.ts index 26b7835a51..fed4af435b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_14.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_15.ts b/ets2panda/test/ast/compiler/ts/member_expression_15.ts index 7771566050..96d6338359 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_15.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_16.ts b/ets2panda/test/ast/compiler/ts/member_expression_16.ts index 18950f9947..9bd27e63aa 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_16.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_17.ts b/ets2panda/test/ast/compiler/ts/member_expression_17.ts index 6c839eeeca..1e6d6ac098 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_17.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_18.ts b/ets2panda/test/ast/compiler/ts/member_expression_18.ts index 72b38476ba..04a22c54b2 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_18.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_19.ts b/ets2panda/test/ast/compiler/ts/member_expression_19.ts index 13a98566eb..284c39e257 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_19.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_2.ts b/ets2panda/test/ast/compiler/ts/member_expression_2.ts index 767ef0daf1..f128efd51e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_2.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_20.ts b/ets2panda/test/ast/compiler/ts/member_expression_20.ts index da6e0b15cf..3d0caf4453 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_20.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_21.ts b/ets2panda/test/ast/compiler/ts/member_expression_21.ts index f605fe3ff0..499bb84144 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_21.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_22.ts b/ets2panda/test/ast/compiler/ts/member_expression_22.ts index 4453ba225d..ee1741bab4 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_22.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_23.ts b/ets2panda/test/ast/compiler/ts/member_expression_23.ts index 1e7714faf7..59e63af201 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_23.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_24.ts b/ets2panda/test/ast/compiler/ts/member_expression_24.ts index 8a00ebfcf1..b5a6593644 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_24.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_25.ts b/ets2panda/test/ast/compiler/ts/member_expression_25.ts index 1d4714c580..1da104779c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_25.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_26.ts b/ets2panda/test/ast/compiler/ts/member_expression_26.ts index 4a0470b979..eaf4851ca1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_26.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_27.ts b/ets2panda/test/ast/compiler/ts/member_expression_27.ts index e24b7ea266..441fdee9fc 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_27.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_28.ts b/ets2panda/test/ast/compiler/ts/member_expression_28.ts index 7a695a09c8..60a0e13403 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_28.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_29.ts b/ets2panda/test/ast/compiler/ts/member_expression_29.ts index 10844536af..12f9f7d988 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_29.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_3.ts b/ets2panda/test/ast/compiler/ts/member_expression_3.ts index 189539ddb8..97bb0dcaa5 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_3.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_30.ts b/ets2panda/test/ast/compiler/ts/member_expression_30.ts index 2d7a034c73..36f3c768f7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_30.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_31.ts b/ets2panda/test/ast/compiler/ts/member_expression_31.ts index 1752550102..43d23bd44c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_31.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_32.ts b/ets2panda/test/ast/compiler/ts/member_expression_32.ts index 977e4eee96..797a30a8d6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_32.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_33.ts b/ets2panda/test/ast/compiler/ts/member_expression_33.ts index a210392c25..185503ec01 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_33.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_34.ts b/ets2panda/test/ast/compiler/ts/member_expression_34.ts index e0637a8a9f..8142a0637e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_34.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_35.ts b/ets2panda/test/ast/compiler/ts/member_expression_35.ts index bb8f3f26ed..9544b06b64 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_35.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_36.ts b/ets2panda/test/ast/compiler/ts/member_expression_36.ts index f49961d71e..51e860217f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_36.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_37.ts b/ets2panda/test/ast/compiler/ts/member_expression_37.ts index c602fe6520..69765f4e5b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_37.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_38.ts b/ets2panda/test/ast/compiler/ts/member_expression_38.ts index 3d286bebaa..cc0478d26b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_38.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_39.ts b/ets2panda/test/ast/compiler/ts/member_expression_39.ts index 1e441b69b4..d9534bd023 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_39.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_4.ts b/ets2panda/test/ast/compiler/ts/member_expression_4.ts index cba45ea627..7e94505dae 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_4.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_40.ts b/ets2panda/test/ast/compiler/ts/member_expression_40.ts index dd225472e0..988dc69784 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_40.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_41.ts b/ets2panda/test/ast/compiler/ts/member_expression_41.ts index cf0cef8ce7..f23d2e38e7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_41.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_42.ts b/ets2panda/test/ast/compiler/ts/member_expression_42.ts index a0f22260c6..23ad264acb 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_42.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_43.ts b/ets2panda/test/ast/compiler/ts/member_expression_43.ts index e9a3b0477b..dbec2e803d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_43.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_44.ts b/ets2panda/test/ast/compiler/ts/member_expression_44.ts index 366ae5551e..9d58560d2b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_44.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_45.ts b/ets2panda/test/ast/compiler/ts/member_expression_45.ts index f475269e2d..761dbfa646 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_45.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_46.ts b/ets2panda/test/ast/compiler/ts/member_expression_46.ts index ef9a49b20c..9f84180173 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_46.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_47.ts b/ets2panda/test/ast/compiler/ts/member_expression_47.ts index 738f891a07..5caa6c70b2 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_47.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_48.ts b/ets2panda/test/ast/compiler/ts/member_expression_48.ts index 374745bfb9..b10c673117 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_48.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_49.ts b/ets2panda/test/ast/compiler/ts/member_expression_49.ts index 38ffda3e7c..988a059db3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_49.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_5.ts b/ets2panda/test/ast/compiler/ts/member_expression_5.ts index 1b1abe48d8..145f83f8e9 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_5.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_50.ts b/ets2panda/test/ast/compiler/ts/member_expression_50.ts index e7c3135321..7bb8b0e420 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_50.ts @@ -19,4 +19,4 @@ var b: string; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_51.ts b/ets2panda/test/ast/compiler/ts/member_expression_51.ts index cea2f24855..7781a4aa4b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_51.ts @@ -19,4 +19,4 @@ var b: string; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_52.ts b/ets2panda/test/ast/compiler/ts/member_expression_52.ts index 7439c0be46..e766c93a44 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_52.ts @@ -19,4 +19,4 @@ var b: number; var c: string; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_53.ts b/ets2panda/test/ast/compiler/ts/member_expression_53.ts index 8474d1ab3b..1663dc9f6b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_53.ts @@ -19,4 +19,4 @@ var b: number; var c: string; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_54.ts b/ets2panda/test/ast/compiler/ts/member_expression_54.ts index 4264f075ba..233663978c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_54.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_55.ts b/ets2panda/test/ast/compiler/ts/member_expression_55.ts index d134a679f0..7948afca6b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_55.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_56.ts b/ets2panda/test/ast/compiler/ts/member_expression_56.ts index c2656dad96..9f2dc45490 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_56.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_57.ts b/ets2panda/test/ast/compiler/ts/member_expression_57.ts index fc49279647..231ece1daa 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_57.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_58.ts b/ets2panda/test/ast/compiler/ts/member_expression_58.ts index 168b4d4c21..5235ee54e6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_58.ts @@ -19,4 +19,4 @@ var b: bigint; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_59.ts b/ets2panda/test/ast/compiler/ts/member_expression_59.ts index 5a70c628cf..8d7a0209c1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_59.ts @@ -19,4 +19,4 @@ var b: bigint; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_6.ts b/ets2panda/test/ast/compiler/ts/member_expression_6.ts index 20d9bf6b0e..ec5b1a9927 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_6.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_60.ts b/ets2panda/test/ast/compiler/ts/member_expression_60.ts index eb96793a82..eb860b60ab 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_60.ts @@ -19,4 +19,4 @@ var b: number; var c: bigint; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_61.ts b/ets2panda/test/ast/compiler/ts/member_expression_61.ts index ef08769f8b..7db41530b7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_61.ts @@ -19,4 +19,4 @@ var b: number; var c: bigint; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_62.ts b/ets2panda/test/ast/compiler/ts/member_expression_62.ts index ba76d90c90..300fd2b9f9 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_62.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_63.ts b/ets2panda/test/ast/compiler/ts/member_expression_63.ts index 855212e0cb..4efcd615b1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_63.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_64.ts b/ets2panda/test/ast/compiler/ts/member_expression_64.ts index 5c78997ae3..698b3c3145 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_64.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_65.ts b/ets2panda/test/ast/compiler/ts/member_expression_65.ts index f73ecefc61..4e94ae97ef 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_65.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_66.ts b/ets2panda/test/ast/compiler/ts/member_expression_66.ts index d90b765dc4..872969d029 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_66.ts @@ -19,4 +19,4 @@ var b: boolean; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_67.ts b/ets2panda/test/ast/compiler/ts/member_expression_67.ts index 12a42f0d48..478a35bf6c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_67.ts @@ -19,4 +19,4 @@ var b: boolean; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_68.ts b/ets2panda/test/ast/compiler/ts/member_expression_68.ts index 6eda93b2cb..b1abad737f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_68.ts @@ -19,4 +19,4 @@ var b: number; var c: boolean; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_69.ts b/ets2panda/test/ast/compiler/ts/member_expression_69.ts index 77158f4137..11fa97bd15 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_69.ts @@ -19,4 +19,4 @@ var b: number; var c: boolean; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_7.ts b/ets2panda/test/ast/compiler/ts/member_expression_7.ts index 1c58011a55..020f280cf3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_7.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: number; b = a.foo.bar./* @@ label */bad; -/* @@@ label Error TypeError: Property bad does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property bad does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_70.ts b/ets2panda/test/ast/compiler/ts/member_expression_70.ts index 677d3a5f9a..728e29dd3d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_70.ts @@ -17,4 +17,4 @@ var a: {readonly [a:number]:number, [b:string]:number}; /* @@ label */a[5] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_71.ts b/ets2panda/test/ast/compiler/ts/member_expression_71.ts index 749774d7ed..4aa5fd2522 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_71.ts @@ -17,4 +17,4 @@ var a: {[a:number]:number, readonly [b:string]:number}; /* @@ label */a["foo"] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_72.ts b/ets2panda/test/ast/compiler/ts/member_expression_72.ts index a9680cc861..eba31456f9 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_72.ts @@ -20,4 +20,4 @@ interface foo {readonly [a:number]:number, var a: foo; /* @@ label */a[5] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_73.ts b/ets2panda/test/ast/compiler/ts/member_expression_73.ts index 8c7b4e7aea..731ef6cc38 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_73.ts @@ -20,4 +20,4 @@ interface foo {[a:number]:number, var a: foo; /* @@ label */a["foo"] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_74.ts b/ets2panda/test/ast/compiler/ts/member_expression_74.ts index 6db696aaac..ea9e8d04cc 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_74.ts @@ -17,4 +17,4 @@ var a: {readonly b: {readonly c: number}}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_75.ts b/ets2panda/test/ast/compiler/ts/member_expression_75.ts index 93d3e784dd..9473d7421a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_75.ts @@ -21,4 +21,4 @@ interface foo { var a: {readonly b: foo}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_76.ts b/ets2panda/test/ast/compiler/ts/member_expression_76.ts index 60712db747..cbbd339825 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_76.ts @@ -21,4 +21,4 @@ interface foo { var a: {b: foo}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_77.ts b/ets2panda/test/ast/compiler/ts/member_expression_77.ts index 9c52951c62..ed907ba006 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_77.ts @@ -17,4 +17,4 @@ var a: {b: {readonly c: number}}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_8.ts b/ets2panda/test/ast/compiler/ts/member_expression_8.ts index c20269a97d..4d740289b8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_8.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: number; b = a?.foo?.bar?./* @@ label */bad; -/* @@@ label Error TypeError: Property bad does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property bad does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_80.ts b/ets2panda/test/ast/compiler/ts/member_expression_80.ts index 855f43112c..0c78b58a77 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_80.ts @@ -17,4 +17,4 @@ var a = {[5 + 4]:3} as const; /* @@ label */a[5] = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_81.ts b/ets2panda/test/ast/compiler/ts/member_expression_81.ts index 62fca284be..db8022616a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_81.ts @@ -17,4 +17,4 @@ var a = {["foo"+"bar"]:3} as const; /* @@ label */a.baz = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_82.ts b/ets2panda/test/ast/compiler/ts/member_expression_82.ts index 3f02e03f04..f298ac3845 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_82.ts @@ -17,4 +17,4 @@ var a = {["foo"+"bar"]:3} as const; /* @@ label */a["baz"] = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_1.ts b/ets2panda/test/ast/compiler/ts/new_expression_1.ts index 8fdba6b7d2..b06ce260b8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_1.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_10.ts b/ets2panda/test/ast/compiler/ts/new_expression_10.ts index e6a99f150e..7754701ccb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_10.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_100.ts b/ets2panda/test/ast/compiler/ts/new_expression_100.ts index 59c66397c9..40f306315a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_100.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_100.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo("foo",/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_101.ts b/ets2panda/test/ast/compiler/ts/new_expression_101.ts index a6bd7c200b..ac0d5890b7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_101.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_101.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_102.ts b/ets2panda/test/ast/compiler/ts/new_expression_102.ts index a4751a2bf7..60795024e7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_102.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_102.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_103.ts b/ets2panda/test/ast/compiler/ts/new_expression_103.ts index ac5190a165..38713b898b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_103.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_103.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_104.ts b/ets2panda/test/ast/compiler/ts/new_expression_104.ts index e6c86f7460..22dd2fcd93 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_104.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_104.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_105.ts b/ets2panda/test/ast/compiler/ts/new_expression_105.ts index 28212180a5..70819a6784 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_105.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_105.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_106.ts b/ets2panda/test/ast/compiler/ts/new_expression_106.ts index 811aa0d226..92dfce1e78 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_106.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_106.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_107.ts b/ets2panda/test/ast/compiler/ts/new_expression_107.ts index 287073cbf7..b1772560a7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_107.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_107.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo("foo",/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_108.ts b/ets2panda/test/ast/compiler/ts/new_expression_108.ts index 1489158256..02ccddc742 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_108.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_108.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_109.ts b/ets2panda/test/ast/compiler/ts/new_expression_109.ts index 016b9cae39..37c5ba5fe7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_109.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_109.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_11.ts b/ets2panda/test/ast/compiler/ts/new_expression_11.ts index 75ba002425..dac15e30a6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_11.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_110.ts b/ets2panda/test/ast/compiler/ts/new_expression_110.ts index 0775d070b4..e10353c8f9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_110.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_110.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_111.ts b/ets2panda/test/ast/compiler/ts/new_expression_111.ts index fb44ef22c2..00dc226e69 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_111.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_111.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_112.ts b/ets2panda/test/ast/compiler/ts/new_expression_112.ts index d9df4bfad2..ffdae7a277 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_112.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_112.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_113.ts b/ets2panda/test/ast/compiler/ts/new_expression_113.ts index 67b4fecadd..85e1407662 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_113.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_113.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_114.ts b/ets2panda/test/ast/compiler/ts/new_expression_114.ts index 2be16cb1d7..2b040e410b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_114.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_114.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_115.ts b/ets2panda/test/ast/compiler/ts/new_expression_115.ts index b44c30a26e..98391e270d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_115.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_115.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_116.ts b/ets2panda/test/ast/compiler/ts/new_expression_116.ts index 68e5f91f15..caee7c4f36 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_116.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_116.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_117.ts b/ets2panda/test/ast/compiler/ts/new_expression_117.ts index 33f5526a13..13c755627e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_117.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_117.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_118.ts b/ets2panda/test/ast/compiler/ts/new_expression_118.ts index fb8618d048..cccfea156c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_118.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_118.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_119.ts b/ets2panda/test/ast/compiler/ts/new_expression_119.ts index a218f84cac..d56a98e3a3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_119.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_119.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_12.ts b/ets2panda/test/ast/compiler/ts/new_expression_12.ts index 23d72a436c..547410cbf5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_12.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_120.ts b/ets2panda/test/ast/compiler/ts/new_expression_120.ts index e8878e1f38..313896731b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_120.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_120.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_121.ts b/ets2panda/test/ast/compiler/ts/new_expression_121.ts index efe1c57a3e..f5a80a8259 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_121.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_121.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_122.ts b/ets2panda/test/ast/compiler/ts/new_expression_122.ts index 75106e66c7..24faf4835e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_122.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_122.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_123.ts b/ets2panda/test/ast/compiler/ts/new_expression_123.ts index 3715f2fb9e..bfaecd8dd5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_123.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_123.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(5,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_124.ts b/ets2panda/test/ast/compiler/ts/new_expression_124.ts index bb95db1f21..5ba87d54e7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_124.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_124.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_125.ts b/ets2panda/test/ast/compiler/ts/new_expression_125.ts index 5bdbcba543..c02d8344dd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_125.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_125.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_126.ts b/ets2panda/test/ast/compiler/ts/new_expression_126.ts index 189d05b0e8..1cf9b20c97 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_126.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_126.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_127.ts b/ets2panda/test/ast/compiler/ts/new_expression_127.ts index 0b7d5a8880..d5d2842cf5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_127.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_127.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_128.ts b/ets2panda/test/ast/compiler/ts/new_expression_128.ts index a94735b912..f7e7755221 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_128.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_128.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_129.ts b/ets2panda/test/ast/compiler/ts/new_expression_129.ts index 8149ef007a..ce89dd12d1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_129.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_129.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_13.ts b/ets2panda/test/ast/compiler/ts/new_expression_13.ts index a66f1036cb..5e6a509fd1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_13.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_130.ts b/ets2panda/test/ast/compiler/ts/new_expression_130.ts index e710a2c49d..f4a9d4dbae 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_130.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_130.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(5,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_131.ts b/ets2panda/test/ast/compiler/ts/new_expression_131.ts index 82046c6724..d5faed5bcc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_131.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_131.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_132.ts b/ets2panda/test/ast/compiler/ts/new_expression_132.ts index 29e791a1a7..2e78645933 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_132.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_132.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_133.ts b/ets2panda/test/ast/compiler/ts/new_expression_133.ts index ad769fcc84..688feb0b98 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_133.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_133.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_134.ts b/ets2panda/test/ast/compiler/ts/new_expression_134.ts index 0d9b3855b6..82c83db0b7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_134.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_134.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_135.ts b/ets2panda/test/ast/compiler/ts/new_expression_135.ts index 21eb39d71d..3d145d4453 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_135.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_135.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_136.ts b/ets2panda/test/ast/compiler/ts/new_expression_136.ts index b298ca8532..f56763d5a8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_136.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_136.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_137.ts b/ets2panda/test/ast/compiler/ts/new_expression_137.ts index 945be287f0..71f401c13c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_137.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_137.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_138.ts b/ets2panda/test/ast/compiler/ts/new_expression_138.ts index 914d23610b..a0ea68ff59 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_138.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_138.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_139.ts b/ets2panda/test/ast/compiler/ts/new_expression_139.ts index 89cde4a0ab..4ea5f4b833 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_139.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_139.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_14.ts b/ets2panda/test/ast/compiler/ts/new_expression_14.ts index 6a0eed6ba2..07984274fd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_14.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_140.ts b/ets2panda/test/ast/compiler/ts/new_expression_140.ts index 7c90df6d5b..37c5ada185 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_140.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_140.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_141.ts b/ets2panda/test/ast/compiler/ts/new_expression_141.ts index 55014588a3..669150e1ca 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_141.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_141.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_142.ts b/ets2panda/test/ast/compiler/ts/new_expression_142.ts index f63d974ef4..8605d770f0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_142.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_142.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_143.ts b/ets2panda/test/ast/compiler/ts/new_expression_143.ts index 36e5936a03..fa38ed9d57 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_143.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_143.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_144.ts b/ets2panda/test/ast/compiler/ts/new_expression_144.ts index 4a6f9198ac..0c94bbcb2b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_144.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_144.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_145.ts b/ets2panda/test/ast/compiler/ts/new_expression_145.ts index 8447435fdd..20f8e60231 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_145.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_145.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_146.ts b/ets2panda/test/ast/compiler/ts/new_expression_146.ts index 0218570b47..67b07ff26e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_146.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_146.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(false,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_147.ts b/ets2panda/test/ast/compiler/ts/new_expression_147.ts index fea88b7b8a..bf6ed68272 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_147.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_147.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_148.ts b/ets2panda/test/ast/compiler/ts/new_expression_148.ts index 0f3358eca8..05acd4f0e3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_148.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_148.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_149.ts b/ets2panda/test/ast/compiler/ts/new_expression_149.ts index aade0325dc..699fcea0d2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_149.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_149.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_15.ts b/ets2panda/test/ast/compiler/ts/new_expression_15.ts index 406c4df6c4..acb00c69fe 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_15.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_150.ts b/ets2panda/test/ast/compiler/ts/new_expression_150.ts index a6caff5a9c..8a8551a9f3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_150.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_150.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_151.ts b/ets2panda/test/ast/compiler/ts/new_expression_151.ts index 3a771e6656..13b89473d9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_151.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_151.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_152.ts b/ets2panda/test/ast/compiler/ts/new_expression_152.ts index a4102fc45b..fa23c5da18 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_152.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_152.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_153.ts b/ets2panda/test/ast/compiler/ts/new_expression_153.ts index 95899dd474..ee0eb7963e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_153.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_153.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(false,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_154.ts b/ets2panda/test/ast/compiler/ts/new_expression_154.ts index 799985aa1d..102962a34d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_154.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_154.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_155.ts b/ets2panda/test/ast/compiler/ts/new_expression_155.ts index 50d627400f..352a848883 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_155.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_155.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_156.ts b/ets2panda/test/ast/compiler/ts/new_expression_156.ts index 7a97bb5650..f61128b0b0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_156.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_156.ts @@ -17,4 +17,4 @@ var foo: new (a: any, b: any) => any; var a = /* @@ label */new foo(); -/* @@@ label Error TypeError: Expected 2 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_157.ts b/ets2panda/test/ast/compiler/ts/new_expression_157.ts index dee327f082..f9ecd5384e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_157.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_157.ts @@ -17,4 +17,4 @@ var foo: new (a: any, b: any) => any; var a = new foo("foo",5,/* @@ label */false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 3. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 3. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_158.ts b/ets2panda/test/ast/compiler/ts/new_expression_158.ts index 5e50d7f1f0..0d873b1a3f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_158.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_158.ts @@ -18,4 +18,4 @@ var foo: new () => string; var a = new foo(); /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_159.ts b/ets2panda/test/ast/compiler/ts/new_expression_159.ts index 970aa40628..3bcbb74ee6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_159.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_159.ts @@ -18,4 +18,4 @@ var foo: new () => string; var a = new foo(); /* @@ label */a = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_16.ts b/ets2panda/test/ast/compiler/ts/new_expression_16.ts index a551fa7515..f63ea4b8e3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_16.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_160.ts b/ets2panda/test/ast/compiler/ts/new_expression_160.ts index acebfc59e7..11ef0fb579 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_160.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_160.ts @@ -18,4 +18,4 @@ var foo: new () => number; var a = new foo(); /* @@ label */a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_161.ts b/ets2panda/test/ast/compiler/ts/new_expression_161.ts index af4c4a1932..3ec1b6dbe9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_161.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_161.ts @@ -18,4 +18,4 @@ var foo: new () => number; var a = new foo(); /* @@ label */a = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_162.ts b/ets2panda/test/ast/compiler/ts/new_expression_162.ts index 027ee65388..d060d1b557 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_162.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_162.ts @@ -18,4 +18,4 @@ var foo: new () => boolean; var a = new foo(); /* @@ label */a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_163.ts b/ets2panda/test/ast/compiler/ts/new_expression_163.ts index 44a6a4148c..bbf2fbbb1f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_163.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_163.ts @@ -18,4 +18,4 @@ var foo: new () => boolean; var a = new foo(); /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_164.ts b/ets2panda/test/ast/compiler/ts/new_expression_164.ts index 2cc6bdcd66..1468e479f0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_164.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_164.ts @@ -15,4 +15,4 @@ var a = /* @@ label */5(); -/* @@@ label Error TypeError: This expression is not callable. */ +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_17.ts b/ets2panda/test/ast/compiler/ts/new_expression_17.ts index 6a069211ed..0fe9430d11 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_17.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_18.ts b/ets2panda/test/ast/compiler/ts/new_expression_18.ts index ccb1eda259..494ef43cd5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_18.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_19.ts b/ets2panda/test/ast/compiler/ts/new_expression_19.ts index 1340a1ca71..2a2f975686 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_19.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_2.ts b/ets2panda/test/ast/compiler/ts/new_expression_2.ts index c2febcd76c..af4e89b5dd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_2.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_20.ts b/ets2panda/test/ast/compiler/ts/new_expression_20.ts index f2edca0e88..9a169be52b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_20.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_21.ts b/ets2panda/test/ast/compiler/ts/new_expression_21.ts index 1dfdc0d132..b653738bae 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_21.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_22.ts b/ets2panda/test/ast/compiler/ts/new_expression_22.ts index 44c52bad4c..79706d808f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_22.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_23.ts b/ets2panda/test/ast/compiler/ts/new_expression_23.ts index a5f60e2881..c4393ebf01 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_23.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_24.ts b/ets2panda/test/ast/compiler/ts/new_expression_24.ts index b45074f34d..459e191761 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_24.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_25.ts b/ets2panda/test/ast/compiler/ts/new_expression_25.ts index b3e13357e2..e49873a212 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_25.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_26.ts b/ets2panda/test/ast/compiler/ts/new_expression_26.ts index 4d0b0e9345..0e2c07d907 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_26.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_27.ts b/ets2panda/test/ast/compiler/ts/new_expression_27.ts index da2ab5e1bb..541b63ccb9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_27.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_28.ts b/ets2panda/test/ast/compiler/ts/new_expression_28.ts index d4c0c5fc7d..f7392e9981 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_28.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_29.ts b/ets2panda/test/ast/compiler/ts/new_expression_29.ts index 4cb1b605e1..f1c21fe883 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_29.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_3.ts b/ets2panda/test/ast/compiler/ts/new_expression_3.ts index 10facd0ba6..34c0ac5d63 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_3.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_30.ts b/ets2panda/test/ast/compiler/ts/new_expression_30.ts index 68a41f1378..208622cc6e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_30.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_31.ts b/ets2panda/test/ast/compiler/ts/new_expression_31.ts index b6fbeded1f..a26c57d05f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_31.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_32.ts b/ets2panda/test/ast/compiler/ts/new_expression_32.ts index 9b27868bbb..1b7dd993bc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_32.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_33.ts b/ets2panda/test/ast/compiler/ts/new_expression_33.ts index 8e251f8b21..011eb7e2d7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_33.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_34.ts b/ets2panda/test/ast/compiler/ts/new_expression_34.ts index e035473daa..15ad0cb3bb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_34.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_35.ts b/ets2panda/test/ast/compiler/ts/new_expression_35.ts index e604d799a2..0c483e3183 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_35.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_36.ts b/ets2panda/test/ast/compiler/ts/new_expression_36.ts index 888d10fecf..01f9f35549 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_36.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_37.ts b/ets2panda/test/ast/compiler/ts/new_expression_37.ts index 23257adf84..ff2deaedbc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_37.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_38.ts b/ets2panda/test/ast/compiler/ts/new_expression_38.ts index d37984de22..a6957c60fd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_38.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_39.ts b/ets2panda/test/ast/compiler/ts/new_expression_39.ts index f7dc5ba251..8e50533298 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_39.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_4.ts b/ets2panda/test/ast/compiler/ts/new_expression_4.ts index 57df6c92f3..b825b2b0ab 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_4.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_40.ts b/ets2panda/test/ast/compiler/ts/new_expression_40.ts index 557ea9be80..c58e701061 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_40.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_41.ts b/ets2panda/test/ast/compiler/ts/new_expression_41.ts index 54c5983af5..1972ccf787 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_41.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_42.ts b/ets2panda/test/ast/compiler/ts/new_expression_42.ts index ff72f61a28..f2fc14eeee 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_42.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_43.ts b/ets2panda/test/ast/compiler/ts/new_expression_43.ts index 0ffc084761..6e902a9ebc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_43.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_44.ts b/ets2panda/test/ast/compiler/ts/new_expression_44.ts index bdbee06b49..e6345690fb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_44.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_45.ts b/ets2panda/test/ast/compiler/ts/new_expression_45.ts index 4005888e83..ccf8be59fe 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_45.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_46.ts b/ets2panda/test/ast/compiler/ts/new_expression_46.ts index 89a030f01a..b845534a23 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_46.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_47.ts b/ets2panda/test/ast/compiler/ts/new_expression_47.ts index c0dcb28ed4..f75bdb9963 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_47.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_48.ts b/ets2panda/test/ast/compiler/ts/new_expression_48.ts index b4ff92e066..6520323e29 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_48.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_49.ts b/ets2panda/test/ast/compiler/ts/new_expression_49.ts index d18e64cb07..4c331a4f6a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_49.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_5.ts b/ets2panda/test/ast/compiler/ts/new_expression_5.ts index b5b5ac8e3d..5834ad94d6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_5.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_50.ts b/ets2panda/test/ast/compiler/ts/new_expression_50.ts index 9b29649315..02b14c3090 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_50.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_51.ts b/ets2panda/test/ast/compiler/ts/new_expression_51.ts index 50e5473e6a..54fc24f2b8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_51.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_52.ts b/ets2panda/test/ast/compiler/ts/new_expression_52.ts index 078d511e13..47eabf484d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_52.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_53.ts b/ets2panda/test/ast/compiler/ts/new_expression_53.ts index fbb1b13c71..5b823f4647 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_53.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_54.ts b/ets2panda/test/ast/compiler/ts/new_expression_54.ts index d817d00fdd..d2a2eba9d3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_54.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_55.ts b/ets2panda/test/ast/compiler/ts/new_expression_55.ts index af7844d79a..d4a29befb8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_55.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_56.ts b/ets2panda/test/ast/compiler/ts/new_expression_56.ts index 1c399adf2c..babfd93802 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_56.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_57.ts b/ets2panda/test/ast/compiler/ts/new_expression_57.ts index 921d770d50..8dcd264f86 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_57.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_58.ts b/ets2panda/test/ast/compiler/ts/new_expression_58.ts index 9ab673eac6..41588d4135 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_58.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_59.ts b/ets2panda/test/ast/compiler/ts/new_expression_59.ts index 0851c18c1c..bd4615f2b0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_59.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_6.ts b/ets2panda/test/ast/compiler/ts/new_expression_6.ts index d8cc546696..48a9b19736 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_6.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_60.ts b/ets2panda/test/ast/compiler/ts/new_expression_60.ts index 26b9daf084..0d84d7b6a4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_60.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_61.ts b/ets2panda/test/ast/compiler/ts/new_expression_61.ts index 80ff521d13..65c38de719 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_61.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_62.ts b/ets2panda/test/ast/compiler/ts/new_expression_62.ts index 47733f1f6c..e7356f48a4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_62.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_63.ts b/ets2panda/test/ast/compiler/ts/new_expression_63.ts index f772b92e3a..aab46f0d69 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_63.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_64.ts b/ets2panda/test/ast/compiler/ts/new_expression_64.ts index 860be1f0f0..dd8346398f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_64.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_65.ts b/ets2panda/test/ast/compiler/ts/new_expression_65.ts index 456b55f4b8..14b87ae6cb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_65.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_66.ts b/ets2panda/test/ast/compiler/ts/new_expression_66.ts index c3be6c3f23..35abafc464 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_66.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_67.ts b/ets2panda/test/ast/compiler/ts/new_expression_67.ts index 5a1d447819..1290e91347 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_67.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_68.ts b/ets2panda/test/ast/compiler/ts/new_expression_68.ts index aa9680d034..679bf6374b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_68.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_69.ts b/ets2panda/test/ast/compiler/ts/new_expression_69.ts index beb24fe57a..f0b35cb6b5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_69.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_7.ts b/ets2panda/test/ast/compiler/ts/new_expression_7.ts index 69f2848f98..96d690562d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_7.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_70.ts b/ets2panda/test/ast/compiler/ts/new_expression_70.ts index 3ce895a4e3..a5be19f5b7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_70.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_71.ts b/ets2panda/test/ast/compiler/ts/new_expression_71.ts index 6d86679264..fd9aedfa61 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_71.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_72.ts b/ets2panda/test/ast/compiler/ts/new_expression_72.ts index b0d50c3980..4fe5b580cf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_72.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_73.ts b/ets2panda/test/ast/compiler/ts/new_expression_73.ts index bcadd1d4b9..b74d45e741 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_73.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_74.ts b/ets2panda/test/ast/compiler/ts/new_expression_74.ts index e7fd217c57..ee065d9cb5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_74.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_75.ts b/ets2panda/test/ast/compiler/ts/new_expression_75.ts index 26a412110e..c929eade60 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_75.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_76.ts b/ets2panda/test/ast/compiler/ts/new_expression_76.ts index ecced42caf..fd0a05bdb5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_76.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_77.ts b/ets2panda/test/ast/compiler/ts/new_expression_77.ts index a769aeac8d..a5851e2b10 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_77.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_78.ts b/ets2panda/test/ast/compiler/ts/new_expression_78.ts index ad6ccc12cf..20eb7b0c66 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_78.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_78.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_79.ts b/ets2panda/test/ast/compiler/ts/new_expression_79.ts index 945e0eb6b1..2d3d2a7954 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_79.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_79.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_8.ts b/ets2panda/test/ast/compiler/ts/new_expression_8.ts index 31364c2733..a86a31a275 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_8.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_80.ts b/ets2panda/test/ast/compiler/ts/new_expression_80.ts index b37fd46c35..4e1dc41941 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_80.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_81.ts b/ets2panda/test/ast/compiler/ts/new_expression_81.ts index 57d0ca9522..c40ccd25c0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_81.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_82.ts b/ets2panda/test/ast/compiler/ts/new_expression_82.ts index fe0ac12519..46a184746e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_82.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_83.ts b/ets2panda/test/ast/compiler/ts/new_expression_83.ts index 270028dd2e..6ccf455353 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_83.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_83.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_84.ts b/ets2panda/test/ast/compiler/ts/new_expression_84.ts index ee28242dd4..ca5b55109a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_84.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_84.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_85.ts b/ets2panda/test/ast/compiler/ts/new_expression_85.ts index c61f70531d..0afbecb85a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_85.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_85.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_86.ts b/ets2panda/test/ast/compiler/ts/new_expression_86.ts index 9df6494c4a..10d59f556d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_86.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_86.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_87.ts b/ets2panda/test/ast/compiler/ts/new_expression_87.ts index 6eee6c4c96..c58cb1de94 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_87.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_87.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_88.ts b/ets2panda/test/ast/compiler/ts/new_expression_88.ts index 3f837eb289..07761386f8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_88.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_88.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_89.ts b/ets2panda/test/ast/compiler/ts/new_expression_89.ts index 5680e00ba8..c98ff61749 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_89.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_89.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_9.ts b/ets2panda/test/ast/compiler/ts/new_expression_9.ts index cefe11d7f7..488977bb66 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_9.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_90.ts b/ets2panda/test/ast/compiler/ts/new_expression_90.ts index ca3caf7ddc..eadf0e505a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_90.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_90.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_91.ts b/ets2panda/test/ast/compiler/ts/new_expression_91.ts index cb716a5b23..c5ad691d80 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_91.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_91.ts @@ -17,4 +17,4 @@ var foo: { new(a: any, b: any): any ;}; var a = /* @@ label */new foo(); -/* @@@ label Error TypeError: Expected 2 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_92.ts b/ets2panda/test/ast/compiler/ts/new_expression_92.ts index 003571173b..e1fab5db8b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_92.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_92.ts @@ -17,4 +17,4 @@ var foo: { new(a: any, b: any): any ;}; var a = new foo("foo",5,/* @@ label */5n,false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 4. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 4. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_93.ts b/ets2panda/test/ast/compiler/ts/new_expression_93.ts index deb778fe52..adfab75e0a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_93.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_93.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_94.ts b/ets2panda/test/ast/compiler/ts/new_expression_94.ts index 0e6487d244..cc238f4e65 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_94.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_94.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_95.ts b/ets2panda/test/ast/compiler/ts/new_expression_95.ts index a94624d8e5..6286741a90 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_95.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_95.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_96.ts b/ets2panda/test/ast/compiler/ts/new_expression_96.ts index 2957028a76..0ffd51c07c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_96.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_96.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_97.ts b/ets2panda/test/ast/compiler/ts/new_expression_97.ts index 5062e026f3..9fad2a0e15 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_97.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_97.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_98.ts b/ets2panda/test/ast/compiler/ts/new_expression_98.ts index ab3606a22d..bccd00075b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_98.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_98.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_99.ts b/ets2panda/test/ast/compiler/ts/new_expression_99.ts index 72fd545e88..5c72bff64e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_99.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_99.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts index 2c4d484c45..48daf867fc 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts @@ -15,4 +15,4 @@ var { a } = {}; -/* @@? 17:5 Error TypeError: Property a does not exist on type { }. */ +/* @@? 17:5 Error Semantic error ESE0000: Property a does not exist on type { }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts index 7b1a3a3104..55c0fe21b7 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts @@ -15,4 +15,4 @@ var { a: /* @@ label */{ a, b } = { a: 1, b: true } } = { a: 5 } -/* @@@ label Error TypeError: Property a does not exist on type number | { a: number; b: boolean; }. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type number | { a: number; b: boolean; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts index a59ae0a8c9..9a29305bae 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts @@ -15,4 +15,4 @@ var { a: /* @@ label */{ a, b } = { b: "foo" } } = { a: { b: true } }; -/* @@@ label Error TypeError: Property a does not exist on type { b: boolean; } | { b: string; }. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { b: boolean; } | { b: string; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts index 179795e574..b832ad8b1e 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts @@ -16,4 +16,4 @@ var { a: { a = 5n, b } = { b: "foo" } } = { a: { a: 5, b: true } }; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number | bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number | bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts index a6348e0a5d..e30a242b09 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts @@ -16,4 +16,4 @@ var { a, ...b } = { a: 5, b: 5n, c: { a: {}, b: true } }; /* @@ label */b = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '{ b: bigint; c: { a: { }; b: boolean; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '{ b: bigint; c: { a: { }; b: boolean; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts index dd8683ed13..1545a9ccc3 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts @@ -17,4 +17,4 @@ var b: void; var { ...a } = {}; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'void' is not assignable to type '{ }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type '{ }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts index c7a21ab884..472edd5f6a 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts @@ -15,4 +15,4 @@ var { /* @@ label */a = "foo", b }: { a: number } = { a: 12 }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts index ef0ad22f2d..af80db6fd2 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a = "foo", b }: { a: number | string, b: number } = { a: 12 }; -/* @@@ label Error TypeError: Type '{ a: 12; }' is not assignable to type '{ a: number | string; b: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 12; }' is not assignable to type '{ a: number | string; b: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts index 5d547a7a2d..e3f49b44bf 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts @@ -15,4 +15,4 @@ var { a = "foo", b }: { a: number | string, b: number } = { a: 12, /* @@ label */b: true }; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts index b85598c8e8..7cfb6a5f2c 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a, b }: { a: number, b: string } | { a: string } = { a: "foo" }; -/* @@@ label Error TypeError: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts index c6bc68e5e2..0b24461428 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a }: { a: number } | { a: number, b: string, c: { a: number, b: boolean } } | number = { a: 12 }; -/* @@@ label Error TypeError: Property a does not exist on type { a: number; } | { a: number; b: string; c: { a: number; b: boolean; }; } | number. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { a: number; } | { a: number; b: string; c: { a: number; b: boolean; }; } | number. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts index 930912f1c2..a239b4535c 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a } = { a: "foo", b: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts index 7bcfb4cda2..3775635d04 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts @@ -17,4 +17,4 @@ var c: void; var { a, ...b }: { a: number } | { a: number, b: string, c: { a: number, b: boolean } } | { a: number, r: boolean } = { a: 12 }; /* @@ label */b = c; -/* @@@ label Error TypeError: Type 'void' is not assignable to type '{ } | { b: string; c: { a: number; b: boolean; }; } | { r: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type '{ } | { b: string; c: { a: number; b: boolean; }; } | { r: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts index 7dcaef653a..7697499403 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts @@ -17,4 +17,4 @@ var a: { b: number, c: string }; var { c } = a; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts index 314933f5a0..ecc8f0de57 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts @@ -16,4 +16,4 @@ var a: { a: { b: string, c: number } } | number; var /* @@ label */{ a: { b, c } } = a; -/* @@@ label Error TypeError: Property a does not exist on type { a: { b: string; c: number; }; } | number. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { a: { b: string; c: number; }; } | number. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts index 7ef9f4a56c..543a56df54 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts @@ -16,4 +16,4 @@ var a: { b: { c: [number, number] } }; var { b: { c: [/* @@ label */a, b] } } = a; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ b: { c: [number, number]; }; }', but here has type 'number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ b: { c: [number, number]; }; }', but here has type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts index 015c0ea1d4..dcf14f6466 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts @@ -17,4 +17,4 @@ var a: { b: number, c: { t: [string | number, boolean[]] } }; var { b, c: { t: [d, e] } } = a; /* @@ label */d = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts index 61864dbd65..d893687903 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts @@ -20,4 +20,4 @@ function a(a: number[]): { b: number, c: [number, string] } { var { b = "foo", c: [c, d] } = a([1, 2, 3]); /* @@ label */d = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts index fd3a3ca790..417dc64f7b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts @@ -16,4 +16,4 @@ var /* @@ label */{ a: { b: [{ r, k } = { er: 5 }] = ["foo", true] } = { z: 5, b: [2, "foo"] } } = { a: { k: 2, b: [true, 2n] }, k: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'k' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'k' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts index 9bd382af4c..3bc43ceba4 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts @@ -19,4 +19,4 @@ var /* @@ label */{ a: { b: [c = 2, d] = ["foo", true] } = { b: [2, "foo"] } } = -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 't' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 't' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts index ca27a55943..f4444830de 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts @@ -19,4 +19,4 @@ var { a: { b: [c = u, d] = [1, true] } = { b: [2n] } } = { a: { k: 2, b: ["foo", /* @@ label */c = e; -/* @@@ label Error TypeError: Type 'void' is not assignable to type 'string | bigint | number | { a: number; b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type 'string | bigint | number | { a: number; b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts index f68bff2a4d..9c75e23df0 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts @@ -17,4 +17,4 @@ var a: number; (/* @@ label */{a} = "foo") -/* @@@ label Error TypeError: Property a does not exist on type "foo". */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type "foo". */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts index f69b544293..fc1aec4591 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a = 5, b: foo } = { foo: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'foo' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'foo' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts index 76adad5396..26df2b4afa 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts @@ -17,4 +17,4 @@ var a: number; ({/* @@ label */a} = {a : "foo"}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts index 66cb64efe7..689884f4e9 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts @@ -17,4 +17,4 @@ var a: number; ({/* @@ label */a = "foo"} = {a : 3}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts index c323c3b1c1..a99ed27497 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts @@ -16,4 +16,4 @@ ({/* @@ label */a} = {a : 3}) -/* @@@ label Error TypeError: Cannot find name 'a'. */ +/* @@@ label Error Semantic error ESE0000: Cannot find name 'a'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts index 93b6c42d66..489198b704 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts @@ -17,4 +17,4 @@ var a: number; (/* @@ label */{ a } = { a: 3, b: 4 }) -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts index 396d54e6ee..9eca757668 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts @@ -18,4 +18,4 @@ var b: string; (/* @@ label */{a} = b) -/* @@@ label Error TypeError: Property a does not exist on type string. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type string. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts index 929158a70e..90b0abee58 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts @@ -18,4 +18,4 @@ var b: string; ({/* @@ label */a} = {a : b}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts index 1a05ef62b5..f1e8069412 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts @@ -19,4 +19,4 @@ var c: string; ({a : /* @@ label */{c}} = {a : "foo"}) -/* @@@ label Error TypeError: Property c does not exist on type string. */ +/* @@@ label Error Semantic error ESE0000: Property c does not exist on type string. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts index 46fe6602d3..050a7a0956 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts @@ -18,4 +18,4 @@ var c: string; ({ a: { c } } = { a: { /* @@ label */b } }) -/* @@@ label Error TypeError: Cannot find name b */ +/* @@@ label Error Semantic error ESE0000: Cannot find name b */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts index 566f6c5b5e..d8f733b3a8 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts @@ -19,4 +19,4 @@ var c: string; ({a : {/* @@ label */c}} = {a : {c : b}}) -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts index 60dbfb2f7e..56d17335d6 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts @@ -18,4 +18,4 @@ var b: string; (/* @@ label */{a} = {a : 5, b : "foo"}) -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts index 2ea4e50067..b32552a1e1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts @@ -15,4 +15,4 @@ var { a: /* @@ label */[b = 5, c] } = { a: 5 }; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts index 2ef0749a78..de9e5d3d65 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts @@ -18,4 +18,4 @@ var b: string; (/* @@ label */{a, b} = {a : 5}) -/* @@@ label Error TypeError: Property b does not exist on type { a: number; }. */ +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts index 9fa54d7bcc..2177e2c233 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts @@ -19,4 +19,4 @@ var b: string; var c = {}; ({c: /* @@ label */{b, a} = {a: "baz"}} = {c : {a: 10, b: "bar"}}); -/* @@@ label Error TypeError: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts index 17fbc07038..7a25af4dac 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a: [b = "bar", c] } = { b: "foo" }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts index ecf37d1a57..40cd0efb76 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts @@ -16,4 +16,4 @@ var { a: foo } = { a: { a: 1, b: true } }; foo = { /* @@ label */a: "foo", b: false }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts index 9ab3173852..574b7b7d1b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts @@ -16,4 +16,4 @@ var { a = { a: 5, b: true } } = { a: 3n }; a = { a: 1, b: false, /* @@ label */c: 6 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type 'bigint | { a: number; b: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type 'bigint | { a: number; b: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts index 6268c200e8..f9f4e7a2e4 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts @@ -16,4 +16,4 @@ var { a: /* @@ label */{ a = "bar", b } = { a: 1, b: true, c: {} } } = { a: { a: 5n, b: "foo" } } -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'c' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'c' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts index 9ed18474f4..e5b0f9ba52 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts @@ -16,4 +16,4 @@ var { a: { a, b } = { a: 1, b: true } } = {} /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts index ac7c82ae1c..f838d3e592 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts @@ -15,4 +15,4 @@ var a: { a: number, b: string } = { /* @@ label */a: "foo", b: "bar" }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts index ed9ad24e52..f0f1b8a6fb 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string } } = { a: { a: 5, /* @@ label */b: 6 } }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts index 082d672d6d..1e0082132e 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { /* @@ label */a: 5 } -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts index ff4edb8c53..734df14fd4 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, /* @@ label */"foo"] } } -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts index 1bc216fb14..30910c3a7f 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, 4], /* @@ label */b: true } } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts index de5c2e8be8..b479dc6e47 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, 4], b: 5, /* @@ label */c: "foo" } } -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts index 947515df84..8f38cd2ada 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts @@ -25,4 +25,4 @@ interface b extends a { } var a: b = { /* @@ label */a: 5 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts index 0a97ff9bc7..19c550f07d 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts @@ -34,4 +34,4 @@ interface d extends a, b, c { } var /* @@ label */a: d = { a: 5, b: "foo", c: true }; -/* @@@ label Error TypeError: Type '{ a: 5; b: "foo"; c: true; }' is not assignable to type 'd'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; b: "foo"; c: true; }' is not assignable to type 'd'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts index d1e85baf4b..bf3c995ff6 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts @@ -17,4 +17,4 @@ var a: { a: number, b: string }; var b: { a: typeof a, b: string }; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ a: { a: number; b: string; }; b: string; }' is not assignable to type '{ a: number; b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: { a: number; b: string; }; b: string; }' is not assignable to type '{ a: number; b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts index e62397927a..ec7d92d7e0 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts @@ -19,4 +19,4 @@ function func(a: { a: number, b: string }, b: number): { a: number[], b: boolean } var /* @@ label */a: { a: string[], b: boolean } = func({ a: 5, b: "foo" }, 6); -/* @@@ label Error TypeError: Type '{ a: number[]; b: boolean; }' is not assignable to type '{ a: string[]; b: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: number[]; b: boolean; }' is not assignable to type '{ a: string[]; b: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts index 66544161d5..66c2402e2c 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts @@ -17,4 +17,4 @@ var a: { a: number, b: { a: number, b: string }, c: { b: boolean, a: null, } }; var b: { a: number | string, b: { a: number, b: number }, c: { a: { a: number, b: string }, d: boolean } }; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ a: number | string; b: { a: number; b: number; }; c: { a: { a: number; b: string; }; d: boolean; }; }' is not assignable to type '{ a: number; b: { a: number; b: string; }; c: { b: boolean; a: null; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: number | string; b: { a: number; b: number; }; c: { a: { a: number; b: string; }; d: boolean; }; }' is not assignable to type '{ a: number; b: { a: number; b: string; }; c: { b: boolean; a: null; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts index cf65b9ae80..ac1030045b 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts @@ -15,4 +15,4 @@ var a: { a: number } = { a: 5, b: "foo" }; -/* @@? 17:32 Error TypeError: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; }'. */ +/* @@? 17:32 Error Semantic error ESE0000: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts index c3bf663f86..df2d9e708c 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts @@ -18,4 +18,4 @@ var a: { new(a: number, b: string): number, (a: number, b: string): string }; var b: { new(a: number, b: string): number, (a: string, b: string): string } /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ (a: string, b: string): string; new (a: number, b: string): number; }' is not assignable to type '{ (a: number, b: string): string; new (a: number, b: string): number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ (a: string, b: string): string; new (a: number, b: string): number; }' is not assignable to type '{ (a: number, b: string): string; new (a: number, b: string): number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts index 1972f5e761..83c5f4038a 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts @@ -15,4 +15,4 @@ var a: { a: number } | { b: string } = { /* @@ label */c: true }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; } | { b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; } | { b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts index d522d80de2..064a0e0c9b 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts @@ -16,4 +16,4 @@ var a: { b: number } = { /* @@ label */b: function (): string { return "foo" } } -/* @@@ label Error TypeError: Type '() => string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type '() => string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts index c2e4a46fa1..1bff549f5a 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts @@ -16,4 +16,4 @@ var a = { a: 5, b: "foo" }; var b: { a: number, b: string, c: number, d: boolean | string } = { ...a, c: 5, /* @@ label */d: 6 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts index f2656e18a9..e576b6aa90 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts @@ -15,4 +15,4 @@ var a: { a: number, b: string } | { a: string, b: number } = { /* @@ label */a: true }; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts index 1efe13e739..215573d321 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts @@ -15,4 +15,4 @@ var a: { a: number } | { a: string } | { a: boolean } = { /* @@ label */b: "foo" }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; } | { a: string; } | { a: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; } | { a: string; } | { a: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts index 92c3073b81..1df827ca94 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts @@ -15,4 +15,4 @@ var a: { b: number, a: number } | { b: string, a: string } | { b: boolean, a: boolean } = { b: "foo", /* @@ label */a: 5n }; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts index c4c89c830c..47cf009a82 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string } } = { /* @@ label */a: 5 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/object_expression_1.ts b/ets2panda/test/ast/compiler/ts/object_expression_1.ts index 73183c0a5a..5f6d2073f3 100644 --- a/ets2panda/test/ast/compiler/ts/object_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/object_expression_1.ts @@ -19,4 +19,4 @@ class Person { } let a = [1, { a: 1, b: 2 } : /* @@ label */Person]; -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ diff --git a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts index 6e1c091548..13e7f8797d 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts @@ -23,4 +23,4 @@ function /* @@ label */foo(a: number, b: string) { var b: any; var b = foo(2, "bar"); -/* @@@ label Error TypeError: foo implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. */ +/* @@@ label Error Semantic error ESE0000: foo implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. */ diff --git a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts index c4d21c7af7..a81f4d4814 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts @@ -28,4 +28,4 @@ var o: { } }; -/* @@@ label Error TypeError: 'c' is referenced directly or indirectly in its own initializer ot type annotation. */ +/* @@@ label Error Semantic error ESE0314: 'c' is referenced directly or indirectly in its own initializer ot type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts index 5a3ece4962..c72bc12bf3 100644 --- a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts +++ b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts @@ -23,4 +23,4 @@ case /* @@ label */'1': break; } -/* @@@ label Error TypeError: Type string is not comparable to type number */ +/* @@@ label Error Semantic error ESE0000: Type string is not comparable to type number */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface4.ts b/ets2panda/test/ast/compiler/ts/test-interface4.ts index b738da85d1..910258a63a 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface4.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface4.ts @@ -15,4 +15,4 @@ interface A { [a: number] /* @@ label */?: number } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface5.ts b/ets2panda/test/ast/compiler/ts/test-interface5.ts index b5b547dc48..ed30b07431 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface5.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface5.ts @@ -15,4 +15,4 @@ interface A { readonly /* @@ label */new(a: number): string }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface6.ts b/ets2panda/test/ast/compiler/ts/test-interface6.ts index 0bf321e80c..5f74958d1b 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface6.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface6.ts @@ -15,4 +15,4 @@ interface A { /* @@ label */readonly a(a: number): string }; -/* @@@ label Error SyntaxError: 'readonly' modifier can only appear on a property declaration or index signature. */ +/* @@@ label Error Syntax error ESY0000: 'readonly' modifier can only appear on a property declaration or index signature. */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface7.ts b/ets2panda/test/ast/compiler/ts/test-interface7.ts index 7a5e63a365..70106818ce 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface7.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface7.ts @@ -15,4 +15,4 @@ interface A { [a: number] /* @@ label */}; -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts index 00ec738437..a32585bf16 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts @@ -15,4 +15,4 @@ var a: { [a:number] /* @@ label */?: number } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts index 4eeeccc157..545eb37872 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts @@ -15,4 +15,4 @@ var a: { readonly /* @@ label */new (a:number):string }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts index 1ce4e9ec12..d13ba6bbde 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts @@ -15,4 +15,4 @@ var a: { /* @@ label */readonly a(a:number):string }; -/* @@@ label Error SyntaxError: 'readonly' modifier can only appear on a property declaration or index signature. */ +/* @@@ label Error Syntax error ESY0000: 'readonly' modifier can only appear on a property declaration or index signature. */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts index bf1f2e1920..e0b8e9c408 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts @@ -15,4 +15,4 @@ var a: { [a:number] /* @@ label */}; -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts b/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts index e814ed3003..0418e07b91 100644 --- a/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts +++ b/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts @@ -15,4 +15,4 @@ const z = null -/* @@? 16:7 Error TypeError: Cannot infer type for variable 'z'. */ +/* @@? 16:7 Error Semantic error ESE0000: Cannot infer type for variable 'z'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts index ce8e49751e..a049b46b65 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts index 782f2da32d..0bb2d62d44 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts @@ -18,4 +18,4 @@ function a(): [string, number] { return ["foo", /* @@ label */"bar"]; } -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts index a7a9083a88..f972af927f 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts @@ -17,4 +17,4 @@ var a: []; var b: [[]]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[[]]' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[[]]' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts index 12c40921ba..aaf385f15d 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts @@ -17,4 +17,4 @@ var a: [a: number, b: string, c?: number]; var b: [a: number, b: string, c: number, d: number]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[a: number, b: string, c: number, d: number]' is not assignable to type '[a: number, b: string, c?: number]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[a: number, b: string, c: number, d: number]' is not assignable to type '[a: number, b: string, c?: number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts index 885290a249..ec6fbff168 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts @@ -21,4 +21,4 @@ function b(c: typeof a) { } b([1, 2, /* @@ label */3]); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts index c0ff485783..983ac715a4 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [] = 6; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts index 6917dc9867..d6868432a4 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts @@ -17,4 +17,4 @@ var a: [number, number, number]; var b: number[]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'number[]' is not assignable to type '[number, number, number]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number[]' is not assignable to type '[number, number, number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts index 8b258ea66f..756c597f8f 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts @@ -15,4 +15,4 @@ var a: [number[], string[]] = [[/* @@ label */"foo"], ["bar"]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts index 0837b076e7..882562bd10 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts @@ -17,4 +17,4 @@ var a: [number, string]; var b = a; /* @@ label */b = [1, 2, 3] as [number, number, number]; -/* @@@ label Error TypeError: Type '[number, number, number]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[number, number, number]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts index 7e4b8fb723..03659ed7d4 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts @@ -19,4 +19,4 @@ var b: [[[number]]]; function func(c: number, d: string): [number] { return [1]; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[number]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts index 27950f7e14..82197b6155 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts @@ -15,4 +15,4 @@ var a: [number] | [string] = [/* @@ label */true]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts index c951334787..85a00520fd 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, string] = [5, "foo", 6]; -/* @@@ label Error TypeError: Type '[5, "foo", 6]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[5, "foo", 6]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts index 9ec77ec04a..ead660ac67 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts @@ -15,4 +15,4 @@ var a: number[] | [string, number] = [/* @@ label */true, 5]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts index 7605186b36..0cf0ba121c 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, number] | [number, number, number] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[number, number] | [number, number, number]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[number, number] | [number, number, number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts index b71a05d00a..f30db13782 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, number] | string = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[number, number] | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[number, number] | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts index 1b006df38f..620e96ad79 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts @@ -15,4 +15,4 @@ var a: [[number, string], [number, string]] = [[1, "foo"], [2, /* @@ label */3]]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts index 6372c84d16..cd3b8afe85 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts @@ -17,4 +17,4 @@ var a: [number, number, number] | number[]; var b: [number, number, number, number] | string[]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[number, number, number, number] | string[]' is not assignable to type '[number, number, number] | number[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[number, number, number, number] | string[]' is not assignable to type '[number, number, number] | number[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts index 25c9a35cc3..1bbae15363 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, number, number] = [1, 2]; -/* @@@ label Error TypeError: Type '[1, 2]' is not assignable to type '[number, number, number]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1, 2]' is not assignable to type '[number, number, number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts index 6cb593a4bb..ba17c1c487 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts @@ -17,4 +17,4 @@ var a: [number, string]; var b: [string, number]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[string, number]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[string, number]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts index c14de10767..e7f8ab8cb8 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts @@ -15,4 +15,4 @@ var a: [number, string] = [5, /* @@ label */6]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts index d21a1504a1..4840bfd9a1 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts @@ -15,4 +15,4 @@ var a: [[a: number, b?: string], [boolean | string, number[]]] = [[1], ["foo", [1, 2, /* @@ label */"foo"]]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts index 3151802c59..c1e04aa0e7 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts @@ -15,4 +15,4 @@ var a: [[a: number, b?: string], [boolean | string, number[]]] = [[1], [/* @@ label */2, [3, 4]]]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts index 7b37bb33b1..789c9e5205 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts @@ -16,4 +16,4 @@ var a: [number, string, boolean, number, string] = [1, "foo", true, 5, 6] -/* @@? 17:72 Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@? 17:72 Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts index ecca78f5e8..54d52d2757 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts @@ -21,4 +21,4 @@ function b(): [string, number] { } /* @@ label */a = b(); -/* @@@ label Error TypeError: Type '[string, number]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[string, number]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts index 167eb1294c..0a6ac7a82b 100644 --- a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts @@ -18,4 +18,4 @@ type a = { a: number, b?: string } | number | [string, string, string]; var b: a; /* @@ label */a += 2; -/* @@@ label Error TypeError: a only refers to a type, but is being used as a value here. */ +/* @@@ label Error Semantic error ESE0000: a only refers to a type, but is being used as a value here. */ diff --git a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts index ced03056b4..10a4833a39 100644 --- a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts +++ b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts @@ -20,4 +20,4 @@ function foo (undefined: string = "bar"): number { foo(); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts index 517bc68d5c..0781542e75 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts @@ -17,4 +17,4 @@ var a: any; var /* @@ label */a: number; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'any', but here has type 'number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'any', but here has type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts index 954811af41..433626af18 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts @@ -20,4 +20,4 @@ var a: {} var a: { a?: number } */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts index 6b06e8234e..9c420a1d8d 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts @@ -16,4 +16,4 @@ var a: {} | { a: number, b: string } | number; var /* @@ label */a: { a: number, b: string } | string | {}; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ } | { a: number; b: string; } | number', but here has type '{ a: number; b: string; } | string | { }'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ } | { a: number; b: string; } | number', but here has type '{ a: number; b: string; } | string | { }'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts index ff9fd5b0f7..5258d83f59 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts @@ -25,4 +25,4 @@ interface b { var c: a; var /* @@ label */c: b; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'c' must be of type 'a', but here has type 'b'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'c' must be of type 'a', but here has type 'b'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts index 43b2a83ede..7ead736e74 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts @@ -34,4 +34,4 @@ interface d { var a: d; var /* @@ label */a: c; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'd', but here has type 'c'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'd', but here has type 'c'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts index 63a30aa5d9..86596213f5 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts @@ -29,4 +29,4 @@ interface c { var a: c; var /* @@ label */a: b; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'c', but here has type 'b'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'c', but here has type 'b'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts index b15007fb25..8d9a32afd4 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts @@ -16,4 +16,4 @@ var a: { a: number, b: string }; var /* @@ label */a: typeof a | 5; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ a: number; b: string; }', but here has type '{ a: number; b: string; } | 5'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ a: number; b: string; }', but here has type '{ a: number; b: string; } | 5'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts index b946050d9d..1c0d6bee1f 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts @@ -16,4 +16,4 @@ var a: number; var /* @@ label */a: 5; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type '5'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts index f457a83a86..a36e454e52 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts @@ -16,4 +16,4 @@ var a: number; var /* @@ label */a: number | string; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'number | string'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts index 29c75591e2..ed70b76bd4 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts @@ -16,4 +16,4 @@ var a: number[] var /* @@ label */a: string[] -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number[]', but here has type 'string[]'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number[]', but here has type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts index 1fae255cbb..7f70c3cf04 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts @@ -20,4 +20,4 @@ var a: { a: number, b: string }; var a: { a: string, b: number }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts index 2a9efa2fbc..e7d514b290 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts @@ -16,4 +16,4 @@ var a: [number, string, number]; var /* @@ label */a: [a: number, b: string, c?: number]; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '[number, string, number]', but here has type '[a: number, b: string, c?: number]'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '[number, string, number]', but here has type '[a: number, b: string, c?: number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts index 0da8751932..785ea860fc 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts @@ -20,4 +20,4 @@ var a: { a: number, b?: string }; var a: { a: number, b: string }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts index 545c7aca0f..a23833dfa0 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts @@ -22,4 +22,4 @@ var a = { a: "foo", ...obj }; var a: { a: number, 5: string }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts index f513c5e59f..df985801e8 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts @@ -16,4 +16,4 @@ var a: (a: number, b?: number) => number; var /* @@ label */a: (a: number, b: number) => number; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '(a: number, b?: number) => number', but here has type '(a: number, b: number) => number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '(a: number, b?: number) => number', but here has type '(a: number, b: number) => number'. */ diff --git a/ets2panda/test/ast/parser/as/test_declare_method.ts b/ets2panda/test/ast/parser/as/test_declare_method.ts index 44924f19b3..c5b6fccefe 100644 --- a/ets2panda/test/ast/parser/as/test_declare_method.ts +++ b/ets2panda/test/ast/parser/as/test_declare_method.ts @@ -18,4 +18,4 @@ class A { declare foo/* @@ label */(a: i32): i32 { } } -/* @@@ label Error SyntaxError: 'declare' modifier cannot appear on class elements of this kind */ +/* @@@ label Error Syntax error ESY0000: Class method can not be declare nor readonly */ diff --git a/ets2panda/test/ast/parser/as/test_decorator.ts b/ets2panda/test/ast/parser/as/test_decorator.ts index 7e1ef04850..4eeabe48f2 100644 --- a/ets2panda/test/ast/parser/as/test_decorator.ts +++ b/ets2panda/test/ast/parser/as/test_decorator.ts @@ -18,5 +18,5 @@ function a(): void { /* @@ label2 */@a /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token '}'. */ -/* @@@ label2 Error SyntaxError: Decorators are not valid here */ +/* @@@ label2 Error Syntax error ESY0000: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/as/test_decorators2.ts b/ets2panda/test/ast/parser/as/test_decorators2.ts index 7f584d3f29..a9739b6ba3 100644 --- a/ets2panda/test/ast/parser/as/test_decorators2.ts +++ b/ets2panda/test/ast/parser/as/test_decorators2.ts @@ -16,4 +16,4 @@ function foo(/* @@ label */@a a: i32): void { } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/as/test_decorators3.ts b/ets2panda/test/ast/parser/as/test_decorators3.ts index 678dc47ba5..1d1afef4cd 100644 --- a/ets2panda/test/ast/parser/as/test_decorators3.ts +++ b/ets2panda/test/ast/parser/as/test_decorators3.ts @@ -18,4 +18,5 @@ class A { constructor(/* @@ label */@a a: i32) { } } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@? 18:32 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 18:37 Error Semantic error ESE0371: Cannot find type 'i32'. */ diff --git a/ets2panda/test/ast/parser/as/test_interface1.ts b/ets2panda/test/ast/parser/as/test_interface1.ts index 71b0ec7f29..6e3f5fd916 100644 --- a/ets2panda/test/ast/parser/as/test_interface1.ts +++ b/ets2panda/test/ast/parser/as/test_interface1.ts @@ -18,4 +18,4 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ +/* @@? 18:11 Error Semantic error ESE0000: Cannot find name i32 */ diff --git a/ets2panda/test/ast/parser/as/test_interface2.ts b/ets2panda/test/ast/parser/as/test_interface2.ts index a3b4c82d13..1817fe8d12 100644 --- a/ets2panda/test/ast/parser/as/test_interface2.ts +++ b/ets2panda/test/ast/parser/as/test_interface2.ts @@ -18,4 +18,4 @@ interface foo { [/* @@ label */a: i8]: v128 } -/* @@@ label Error SyntaxError: 'key' expected. */ +/* @@? 18:25 Error Syntax error ESY0000: An index signature parameter type must be either 'string' or 'number' */ diff --git a/ets2panda/test/ast/parser/as/test_interface3.ts b/ets2panda/test/ast/parser/as/test_interface3.ts index 71b0ec7f29..6e3f5fd916 100644 --- a/ets2panda/test/ast/parser/as/test_interface3.ts +++ b/ets2panda/test/ast/parser/as/test_interface3.ts @@ -18,4 +18,4 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ +/* @@? 18:11 Error Semantic error ESE0000: Cannot find name i32 */ diff --git a/ets2panda/test/ast/parser/as/test_interface4.ts b/ets2panda/test/ast/parser/as/test_interface4.ts index 384bfe9f23..8a5b53660e 100644 --- a/ets2panda/test/ast/parser/as/test_interface4.ts +++ b/ets2panda/test/ast/parser/as/test_interface4.ts @@ -18,4 +18,4 @@ interface foo { [key/* @@ label */]: externref } -/* @@@ label Error SyntaxError: ':' expected. */ +/* @@? 18:26 Error Semantic error ESE0000: Cannot find name externref */ diff --git a/ets2panda/test/ast/parser/as/test_interface5.ts b/ets2panda/test/ast/parser/as/test_interface5.ts index 641b7795f3..1609ff27c1 100644 --- a/ets2panda/test/ast/parser/as/test_interface5.ts +++ b/ets2panda/test/ast/parser/as/test_interface5.ts @@ -18,4 +18,16 @@ interface foo { [/* @@ label */5]: void } -/* @@@ label Error SyntaxError: Identifier expected. */ +/* @@? 18:5 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:21 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:22 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:22 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:24 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:24 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:24 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal1.ts b/ets2panda/test/ast/parser/as/test_object_literal1.ts index b54bf51c8d..e2ae248d2d 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal1.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal1.ts @@ -16,4 +16,6 @@ let a = { /* @@ label */[5 + 6] } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@? 17:33 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal2.ts b/ets2panda/test/ast/parser/as/test_object_literal2.ts index ee3c93ead4..5d52a93d3c 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal2.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal2.ts @@ -16,4 +16,6 @@ let a = { "foo" /* @@ label */} -/* @@@ label Error SyntaxError: ':' expected */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal3.ts b/ets2panda/test/ast/parser/as/test_object_literal3.ts index f500d92a71..2680b809b7 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal3.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal3.ts @@ -16,4 +16,5 @@ let a = { b , a /* @@ label */n ) -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:34 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal4.ts b/ets2panda/test/ast/parser/as/test_object_literal4.ts index 9a60c0609f..585b192967 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal4.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal4.ts @@ -16,4 +16,4 @@ let a = { /* @@ label */...k } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@? 17:28 Error Semantic error ESE0000: Cannot find name k */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation1.ts b/ets2panda/test/ast/parser/as/test_type_annotation1.ts index 28921726e0..fad33ce37a 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation1.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation1.ts @@ -16,5 +16,4 @@ let a: i32 | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation2.ts b/ets2panda/test/ast/parser/as/test_type_annotation2.ts index 7bf7f993c7..b0641a3c38 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation2.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation2.ts @@ -16,5 +16,4 @@ let a: i32[ -/* @@@ label Error SyntaxError: ']' expected */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation3.ts b/ets2panda/test/ast/parser/as/test_type_annotation3.ts index ac54ea313b..5002426e9b 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation3.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation3.ts @@ -16,4 +16,4 @@ let a: (a: i32, b/* @@ label */) => void -/* @@@ label Error SyntaxError: ':' expected */ +/* @@? 17:17 Error Semantic error ESE0000: Parameter b implicitly has any type. */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation4.ts b/ets2panda/test/ast/parser/as/test_type_annotation4.ts index e07712001d..7bd97fa0e0 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation4.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation4.ts @@ -16,5 +16,4 @@ let a: (a: i32, b: u8) => -/* @@@ label Error SyntaxError: Type expected */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation5.ts b/ets2panda/test/ast/parser/as/test_type_annotation5.ts index a31c6614be..de9d5b320e 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation5.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation5.ts @@ -16,4 +16,4 @@ let a: (a: i32, b: u8) /* @@ label */u8 -/* @@@ label Error SyntaxError: '=>' expected */ +/* @@@ label Error Syntax error ESY0000: '=>' expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation6.ts b/ets2panda/test/ast/parser/as/test_type_annotation6.ts index 246090651f..5af321a1b8 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation6.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation6.ts @@ -16,5 +16,4 @@ let b: ((a: i32, b?: void, c: u8) => i32) | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file +/* @@? 17:33 Error Syntax error ESY0000: A required parameter cannot follow an optional parameter */ diff --git a/ets2panda/test/ast/parser/ets/AllowSequence.ets b/ets2panda/test/ast/parser/ets/AllowSequence.ets index 54699864e1..597a7cd005 100644 --- a/ets2panda/test/ast/parser/ets/AllowSequence.ets +++ b/ets2panda/test/ast/parser/ets/AllowSequence.ets @@ -21,4 +21,4 @@ function main(): void { } } -/* @@? 19:17 Error SyntaxError: Comma operator is supported only in 'for' loops. */ +/* @@? 19:17 Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ diff --git a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets index f7ba6eb82c..47b6b58436 100644 --- a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets +++ b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets @@ -15,5 +15,4 @@ declare async function foo(): Promise -/* @@@ label Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@ label */ \ No newline at end of file +/* @@? 19:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets index d2e65d59b7..6392fe53a2 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets @@ -20,4 +20,4 @@ function main(){ let b = $$a; } -/* @@? 20:10 Error TypeError: Unresolved reference $$a */ +/* @@? 20:10 Error Semantic error ESE0143: Unresolved reference $$a */ diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets index 478ef10f02..c2ea9a0e6d 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets @@ -19,6 +19,6 @@ function main(){ let c = $$1; } -/* @@? 17:11 Error TypeError: Unresolved reference $$true */ -/* @@? 18:11 Error TypeError: Unresolved reference $$false */ -/* @@? 19:11 Error TypeError: Unresolved reference $$1 */ \ No newline at end of file +/* @@? 17:11 Error Semantic error ESE0143: Unresolved reference $$true */ +/* @@? 18:11 Error Semantic error ESE0143: Unresolved reference $$false */ +/* @@? 19:11 Error Semantic error ESE0143: Unresolved reference $$1 */ diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets index dece3f1eb2..c293b1ee1f 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets @@ -23,4 +23,4 @@ class A { } } -/* @@? 22:28 Error TypeError: Unresolved reference $$this */ +/* @@? 22:28 Error Semantic error ESE0143: Unresolved reference $$this */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets index 8a366c6af3..6fb8b79215 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets @@ -19,4 +19,4 @@ function main(){ ] } -/* @@? 17:48 Error TypeError: Type 'Array<() => Int>' cannot be assigned to type '() => FixedArray' */ +/* @@@ label Error Semantic error ESE0318: Type 'Array<() => Int>' cannot be assigned to type '() => FixedArray' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets b/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets index 8315e7889c..1566430f5a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets @@ -41,21 +41,21 @@ function foo() { for (let i = 1 in [0, 1, 2]) {} -/* @@? 19:1 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 22:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 23:11 Error SyntaxError: Expected '{', got '('. */ -/* @@? 23:11 Error TypeError: Unresolved reference x */ -/* @@? 27:7 Error SyntaxError: Expected '(', got '{'. */ -/* @@? 27:7 Error TypeError: need to specify target type for class composite */ -/* @@? 29:1 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 29:7 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 29:13 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 31:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 31:13 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 34:5 Error SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. */ -/* @@? 38:5 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 38:5 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 38:13 Error SyntaxError: Unexpected token '@'. */ -/* @@? 38:14 Error TypeError: Cannot find type 'annotate'. */ -/* @@? 42:16 Error SyntaxError: for-in loop variable declaration may not have an initializer. */ -/* @@? 42:16 Error SyntaxError: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ +/* @@? 19:1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 22:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 23:11 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 23:11 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 27:7 Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:7 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 29:1 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 29:7 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 31:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 31:13 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 34:5 Error Syntax error ESY0199: Illegal 'use strict' directive in function with non-simple parameter list. */ +/* @@? 38:5 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 38:5 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 38:13 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 38:14 Error Semantic error ESE0371: Cannot find type 'annotate'. */ +/* @@? 42:16 Error Syntax error ESY0164: for-in loop variable declaration may not have an initializer. */ +/* @@? 42:16 Error Syntax error ESY6987: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets index b39957d8dc..4f5106a654 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets @@ -166,129 +166,129 @@ function main(): void { f(); } -/* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */ -/* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ -/* @@? 37:33 Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@? 37:33 Error TypeError: Unresolved reference rethrows */ -/* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 39:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 39:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 39:31 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 39:38 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 41:1 Error TypeError: Unresolved reference type */ -/* @@? 41:6 Error SyntaxError: Unexpected token '123'. */ -/* @@? 41:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 41:10 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 41:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 43:6 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 43:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 43:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 43:13 Error SyntaxError: Unexpected token 'byte'. */ -/* @@? 45:6 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 45:6 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 45:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 45:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 47:8 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 47:8 Error TypeError: Missing initializer in const declaration */ -/* @@? 49:13 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 51:35 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 51:37 Error SyntaxError: Unexpected token '...'. */ -/* @@? 51:40 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 51:43 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 51:43 Error TypeError: Unresolved reference FixedArray */ -/* @@? 51:58 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 51:59 Error SyntaxError: Unexpected token ':'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:65 Error SyntaxError: Unexpected token '{'. */ -/* @@? 52:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 52:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 52:12 Error TypeError: Unresolved reference q */ -/* @@? 52:23 Error TypeError: Unresolved reference p */ -/* @@? 55:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 59:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 67:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 67:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 68:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 73:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 73:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 74:11 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 77:20 Error TypeError: Interface expected here. */ -/* @@? 77:22 Error TypeError: 'I' type does not exist. */ -/* @@? 78:22 Error TypeError: Method fee(): Int in B not overriding any method */ -/* @@? 83:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 83:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 84:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 92:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 92:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 93:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 103:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 104:21 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 115:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 115:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 115:32 Error TypeError: Unresolved reference U */ -/* @@? 115:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 115:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 115:36 Error TypeError: Unresolved reference T */ -/* @@? 115:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 116:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 116:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 119:1 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 119:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 119:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 119:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 119:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 119:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 119:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 120:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 120:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 123:5 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 123:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 123:6 Error SyntaxError: Unexpected token 'abc'. */ -/* @@? 123:6 Error TypeError: Unresolved reference abc */ -/* @@? 125:1 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ -/* @@? 127:1 Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@? 132:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Catch clause variable cannot have an initializer. */ -/* @@? 137:18 Error SyntaxError: Unexpected token '0'. */ -/* @@? 137:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 137:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 141:24 Error TypeError: This expression is not callable. */ -/* @@? 145:18 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 146:28 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 148:25 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 149:24 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 151:20 Error TypeError: Cannot find type 'D0'. */ -/* @@? 151:29 Error TypeError: Cannot find type 'D0'. */ -/* @@? 157:16 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 158:26 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 161:9 Error SyntaxError: Identifier expected, got 'let'. */ -/* @@? 161:9 Error SyntaxError: Hard keyword 'let' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Identifier expected, got 'const'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 295:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:14 Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ +/* @@? 28:29 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 34:14 Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@? 37:33 Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@? 37:33 Error Semantic error ESE0143: Unresolved reference rethrows */ +/* @@? 39:14 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 39:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 39:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 39:24 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 39:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 39:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 39:31 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 39:38 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 41:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 41:6 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 41:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 41:10 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 41:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 43:6 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 43:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 43:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 43:13 Error Syntax error ESY0227: Unexpected token 'byte'. */ +/* @@? 45:6 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 45:6 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 45:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 45:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 47:8 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 47:8 Error Semantic error ESE0363: Missing initializer in const declaration */ +/* @@? 49:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 51:35 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 51:37 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 51:40 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 51:43 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 51:43 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 51:58 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 51:59 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 51:61 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:61 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 51:61 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:65 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 52:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 52:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 52:12 Error Semantic error ESE0143: Unresolved reference q */ +/* @@? 52:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 55:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 59:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 67:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 67:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 68:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 73:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 73:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 74:11 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 77:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 77:22 Error Semantic error ESE0070: 'I' type does not exist. */ +/* @@? 78:22 Error Semantic error ESE0136: Method fee(): Int in B not overriding any method */ +/* @@? 83:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 83:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 84:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 92:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 92:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 93:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 103:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 104:21 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 115:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 115:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 115:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 115:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 115:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 115:32 Error Semantic error ESE0143: Unresolved reference U */ +/* @@? 115:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 115:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 115:36 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 115:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 116:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 116:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 119:1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 119:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 119:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 119:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 119:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 119:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 119:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 119:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 119:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 120:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 120:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 123:5 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 123:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 123:6 Error Syntax error ESY0227: Unexpected token 'abc'. */ +/* @@? 123:6 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@? 125:1 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 127:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ +/* @@? 132:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:18 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 137:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 137:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 141:24 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 145:18 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 146:28 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 148:25 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 149:24 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 151:20 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 151:29 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 157:16 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 158:26 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 161:9 Error Syntax error ESY0224: Identifier expected, got 'let'. */ +/* @@? 161:9 Error Syntax error ESY0316: Hard keyword 'let' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0224: Identifier expected, got 'const'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 164:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 165:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 166:5 Error Semantic error ESE0128: No matching call signature */ +/* @@? 295:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets index 3cc0fa0bcd..5f6c162a87 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets @@ -122,57 +122,57 @@ function main(): void { a.run(); } -/* @@? 18:18 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 18:46 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:22 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:50 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 21:9 Error TypeError: Unresolved reference IUB */ -/* @@? 22:9 Error TypeError: Unresolved reference IUB */ -/* @@? 23:9 Error TypeError: Unresolved reference IUB */ -/* @@? 24:9 Error TypeError: Unresolved reference IUB */ -/* @@? 25:9 Error TypeError: Unresolved reference IUB */ -/* @@? 26:9 Error TypeError: Unresolved reference IUB */ -/* @@? 27:9 Error TypeError: Unresolved reference IUB */ -/* @@? 28:9 Error TypeError: Unresolved reference IUB */ -/* @@? 29:9 Error TypeError: Unresolved reference IUB */ -/* @@? 30:9 Error TypeError: Unresolved reference IUB */ -/* @@? 31:9 Error TypeError: Unresolved reference IUB */ -/* @@? 32:9 Error TypeError: Unresolved reference IUB */ -/* @@? 33:9 Error TypeError: Unresolved reference IUB */ -/* @@? 34:9 Error TypeError: Unresolved reference IUB */ -/* @@? 35:9 Error TypeError: Unresolved reference IUB */ -/* @@? 36:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 37:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 38:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 39:9 Error TypeError: Unresolved reference HomoSap */ -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 47:13 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:21 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:28 Error TypeError: Static property 'A' must be accessed through it's class 'Random' */ -/* @@? 47:32 Error TypeError: Static property 'C' must be accessed through it's class 'Random' */ -/* @@? 47:37 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 48:26 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 48:33 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 52:35 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ -/* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ -/* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ -/* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ -/* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 113:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:46 Error TypeError: Unresolved reference IUB */ -/* @@? 114:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 114:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 114:46 Error TypeError: Unresolved reference HomoSap */ -/* @@? 116:36 Error TypeError: 'expected' is a static property of 'StringFasta' */ +/* @@? 18:18 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 18:46 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:22 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:50 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 22:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 24:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 25:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 26:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 27:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 28:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 29:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 30:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 31:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 32:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 33:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 34:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 35:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 36:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 37:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 38:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 39:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:13 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:21 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:28 Error Semantic error ESE0173: Static property 'A' must be accessed through it's class 'Random' */ +/* @@? 47:32 Error Semantic error ESE0173: Static property 'C' must be accessed through it's class 'Random' */ +/* @@? 47:37 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 48:26 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 48:33 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 52:35 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 53:27 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Char' */ +/* @@? 54:26 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 54:57 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 71:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 84:41 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 86:9 Error Semantic error ESE0173: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ +/* @@? 94:34 Error Semantic error ESE0173: Static property 'Random' must be accessed through it's class 'StringFasta' */ +/* @@? 95:34 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 95:65 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 103:20 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 112:16 Error Semantic error ESE0173: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ +/* @@? 112:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 113:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:46 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 114:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 114:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 114:46 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 116:36 Error Semantic error ESE0207: 'expected' is a static property of 'StringFasta' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets index 4001142bd1..3e5bfabea0 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets @@ -15,7 +15,7 @@ let c: FixedArray = [0.33 /* @@ label */0.66 0.99] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label Error SyntaxError: Unexpected token '0.66'. */ -/* @@? 16:54 Error SyntaxError: Unexpected token '0.99'. */ -/* @@? 16:58 Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '0.66'. */ +/* @@? 16:54 Error Syntax error ESY0227: Unexpected token '0.99'. */ +/* @@? 16:58 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets index e61d897a80..a1ba7ccd76 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets @@ -17,8 +17,8 @@ function foo(): void { let b: FixedArray = [ 1, 2, 3, , 4, ] } -/* @@? 17:53 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:55 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:55 Error SyntaxError: Unexpected token '4'. */ -/* @@? 17:56 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:58 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:53 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:55 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:55 Error Syntax error ESY0227: Unexpected token '4'. */ +/* @@? 17:56 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:58 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets index e2021d154b..a33eeaf869 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets @@ -24,7 +24,7 @@ class array_type { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'f' might not have been initialized. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'f' might not have been initialized. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets index 44f291da40..5e2ee735ce 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets @@ -23,6 +23,6 @@ function main(): void { let ordinalFail: int = /* @@ label */Color as int; } -/* @@@ label Error TypeError: Enum name 'Color' used in the wrong context */ -/* @@? 21:22 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ -/* @@? 22:13 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@? 21:22 Error Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Error Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@@ label Error Semantic error ESE0144: Enum name 'Color' used in the wrong context */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets b/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets index c5987fed62..d6c5eaee29 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets @@ -26,5 +26,5 @@ function foo(): number { return n! } -/* @@? 23:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:12 Error Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ +/* @@? 23:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:12 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets index 1261d3366d..3b9c283fd0 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets @@ -49,6 +49,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 48:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 48:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 48:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 48:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets index 2c650b8cc1..82cca0f6b7 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets @@ -47,6 +47,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets b/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets index 8e6155210f..fd4e1b446a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets @@ -32,4 +32,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ +/* @@@ label Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets b/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets index 14bfbd47f0..288510d2bb 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets @@ -23,5 +23,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets index 3c8a14a817..55a65fd839 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets @@ -23,19 +23,19 @@ declare class Environment { static foo7(props1: {key:string, value:int}[], props2: FixedArray): void; } -/* @@? 17:23 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 18:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 19:25 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 21:20 Error SyntaxError: Invalid Type. */ -/* @@? 21:28 Error SyntaxError: Invalid Type. */ -/* @@? 21:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 21:39 Error SyntaxError: Unexpected token '--'. */ -/* @@? 21:41 Error SyntaxError: Unexpected token '-'. */ -/* @@? 21:42 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:43 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 22:20 Error SyntaxError: Invalid Type. */ -/* @@? 23:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 23:36 Error SyntaxError: Unexpected token ','. */ +/* @@? 17:23 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 19:25 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 21:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 21:39 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token '-'. */ +/* @@? 21:42 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:43 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 22:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 23:36 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets index 7c1ccaa0ee..e852b44ab1 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets @@ -14,4 +14,4 @@ */ function /* @@ label */foo(a: int, b: float, ...c: FixedArray): boolean {} -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets index 5e4dcd90af..cbbbfffda4 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets @@ -37,49 +37,49 @@ class Class2 { let var6: [a0: , a1: ]; -/* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */ -/* @@? 24:12 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 24:23 Error SyntaxError: Invalid Type. */ -/* @@? 24:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '>'. */ -/* @@? 24:26 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:26 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 24:33 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:35 Error SyntaxError: Unexpected token 'FixedArray'. */ -/* @@? 24:35 Error TypeError: Unresolved reference FixedArray */ -/* @@? 24:46 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:49 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:49 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 24:56 Error SyntaxError: Unexpected token ']'. */ -/* @@? 26:12 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 26:23 Error SyntaxError: Invalid Type. */ -/* @@? 26:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token '>'. */ -/* @@? 26:26 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 26:26 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 26:33 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:35 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 26:35 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 26:41 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token '?'. */ -/* @@? 28:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 30:20 Error SyntaxError: Unexpected token '...'. */ -/* @@? 30:23 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 30:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 32:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 32:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:21 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 38:12 Error TypeError: Cannot find type 'a0'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:18 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 38:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:22 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:23 Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ +/* @@? 24:12 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 24:23 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 24:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 24:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 24:26 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:26 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 24:33 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:35 Error Syntax error ESY0227: Unexpected token 'FixedArray'. */ +/* @@? 24:35 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 24:46 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:49 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:49 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 24:56 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 26:12 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 26:23 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 26:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 26:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 26:23 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 26:26 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 26:26 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 26:33 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:35 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 26:35 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 26:41 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 28:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 30:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 30:20 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 30:23 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 30:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 32:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 32:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 32:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:21 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 38:12 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 38:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:18 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 38:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets index 333c113df0..33ea3182b3 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets @@ -17,4 +17,4 @@ function main(/* @@ label */i : FixedArray): void { return; } -/* @@? 16:29 Error TypeError: Only 'FixedArray' type argument is allowed. */ +/* @@@ label Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets index f3af9d3186..f3f57f5945 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets @@ -17,4 +17,4 @@ function main(i : FixedArray, ii : int): void { return; } -/* @@? 16:10 Error TypeError: 0 or 1 argument are allowed */ +/* @@? 16:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets index 5f99a78e6e..089a40cb11 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets @@ -21,4 +21,4 @@ function /* @@ label */main(i : FixedArray): void { return; } -/* @@@ label Error TypeError: Main overload is not enabled */ +/* @@@ label Error Semantic error ESE0373: Main overload is not enabled */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets index 9efe83953a..25009cbe1d 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets @@ -30,8 +30,8 @@ abstract class method_full { private native foo_native(): int ; } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label4 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label1 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label4 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets index 3bf1015d7a..f8828ed1b2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets @@ -18,5 +18,5 @@ function main(): void { let d: FixedArray = /* @@ label1 */null; } -/* @@? 17:48 Error TypeError: Type 'null' cannot be assigned to type 'FixedArray' */ -/* @@? 18:46 Error TypeError: Type 'null' cannot be assigned to type 'FixedArray' */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'FixedArray' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'FixedArray' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets index 7f0a390e84..57a4861ea8 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets @@ -19,4 +19,4 @@ export class Test { } } -/* @@@ label Error TypeError: Type 'Double' cannot be used as an index type. Only primitive or unboxable integral types can be used as index. */ +/* @@@ label Error Semantic error ESE0236: Type 'Double' cannot be used as an index type. Only primitive or unboxable integral types can be used as index. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets b/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets index e096d5945f..f0b098aaad 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets @@ -35,7 +35,7 @@ let s: String = "abc"; // see 3.2.2 Array types let a: FixedArray = new int[5]; -/* @@@ label Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 23:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 27:31 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 27:38 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 23:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 27:31 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 27:38 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets index 76821f2070..13d52f9d99 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets @@ -19,5 +19,5 @@ function foo (p: FixedArray) { let x: Readonly> = [] /* @@ label */foo(/* @@ label1 */x) -/* @@? 20:15 Error TypeError: No matching call signature for foo(readonly FixedArray) */ -/* @@? 20:34 Error TypeError: Type 'readonly FixedArray' is not compatible with type 'FixedArray' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly FixedArray) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly FixedArray' is not compatible with type 'FixedArray' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets index 516d11b4d2..2f5b4d98b2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets @@ -18,4 +18,4 @@ function foo (x: Readonly>) { let x1 : FixedArray x1 = /* @@ label */x } -/* @@? 19:24 Error TypeError: Type 'readonly FixedArray' cannot be assigned to type 'FixedArray' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly FixedArray' cannot be assigned to type 'FixedArray' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets b/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets index a7f6f9a173..e3d1f91afa 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets @@ -57,7 +57,7 @@ function main(){ "Mary":["20", "30"] }; } -/* @@@ label Error TypeError: Type '"10"' is not compatible with type 'Double' at property 'age' */ -/* @@@ label1 Error TypeError: Type '"100"' is not compatible with type 'Double' at property 'salary' */ -/* @@@ label2 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named other */ +/* @@@ label Error Semantic error ESE0319: Type '"10"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label1 Error Semantic error ESE0319: Type '"100"' is not compatible with type 'Double' at property 'salary' */ +/* @@@ label2 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets b/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets index 6d283778e6..b64b68b177 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets @@ -17,7 +17,7 @@ function hehe(...items: FixedArray/* @@ label */: void /* @@ label1 */{ console.log("aaaaaaaa") } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:59 Error SyntaxError: Unexpected token 'void'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:59 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets index b663614e7a..543a68485b 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets @@ -20,7 +20,7 @@ function main() { let y2: [boolean, int, string] = /* @@ label2 */[true, /* @@ label3 */...x2] } -/* @@? 18:43 Error TypeError: Initializer has 1 elements, but tuple requires 2 */ -/* @@? 18:59 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 20:53 Error TypeError: Initializer has 2 elements, but tuple requires 3 */ -/* @@? 20:75 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 3 */ +/* @@@ label3 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets index 7eef9e9c85..34a42c61b2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets @@ -26,12 +26,12 @@ function main() { let a2 = new A(...nums); } -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:41 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 18:49 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:51 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 19:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 19:14 Error TypeError: Variable 'fld' has already been declared. */ -/* @@? 19:20 Error TypeError: Unresolved reference p */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:41 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 18:49 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:51 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 19:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 19:14 Error Semantic error ESE0351: Variable 'fld' has already been declared. */ +/* @@? 19:20 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets index a56359fbb1..6d968ecd42 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets @@ -26,4 +26,4 @@ function main() { let a2 = new A(1, 1.0, ...nums); } -/* @@@ label Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ +/* @@@ label Error Syntax error ESY0015: Both optional and rest parameters are not allowed in function's parameter list. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets b/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets index 7bc50a28ae..eafe6ec849 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo; } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets b/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets index ed842108df..5ca9d2ed4a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo(); } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets index cd7cb9cd0e..feef8ea6a3 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets @@ -44,4 +44,4 @@ function foo(arg : A) { return arg; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets b/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets index 0a9abed75e..b6df134e07 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets @@ -35,35 +35,35 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 16:40 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 24:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:15 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 28:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:14 Error SyntaxError: Unexpected token '2'. */ -/* @@? 28:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:1 Error TypeError: No matching call signature for foo(a[0], a[1], ...a) */ -/* @@? 31:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:17 Error TypeError: Spread argument for the rest parameter can be only one. */ -/* @@? 32:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:11 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 32:11 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 32:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 33:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:6 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 34:6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 34:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 34:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 35:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 35:10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 36:5 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:40 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 24:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 28:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:14 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 28:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:1 Error Semantic error ESE0127: No matching call signature for foo(a[0], a[1], ...a) */ +/* @@? 31:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:17 Error Semantic error ESE0123: Spread argument for the rest parameter can be only one. */ +/* @@? 32:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 32:11 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 32:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 33:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 34:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 34:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 34:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 35:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 35:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 35:10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 36:5 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets b/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets index a0436293f7..9481f26c7f 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets @@ -16,14 +16,14 @@ let a: [number, FixedArray<...number>, number] = [1, 2, 3]; -/* @@? 17:17 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 17:28 Error SyntaxError: Invalid Type. */ -/* @@? 17:28 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '>'. */ -/* @@? 17:31 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:31 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:38 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:40 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:40 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:46 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:17 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 17:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:28 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:28 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 17:31 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:31 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:40 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:40 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:46 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets b/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets index 28ab427441..b5efd46b59 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets @@ -30,8 +30,8 @@ function main(): int { return 0; } -/* @@? 29:34 Error TypeError: No matching construct signature for type_argument_conversion.A(Array>) */ -/* @@? 29:58 Error TypeError: No Matching Parameterless Constructor, parameter count 1 */ -/* @@? 29:58 Error TypeError: No matching parameterless constructor */ -/* @@? 29:58 Error TypeError: Signature is not available here. */ -/* @@? 29:58 Error TypeError: Type 'Array>' is not compatible with type 'FixedArray>' at index 1 */ +/* @@? 29:34 Error Semantic error ESE0127: No matching construct signature for type_argument_conversion.A(Array>) */ +/* @@? 29:58 Error Semantic error ESE0270: No Matching Parameterless Constructor, parameter count 1 */ +/* @@? 29:58 Error Semantic error ESE0125: No matching parameterless constructor */ +/* @@? 29:58 Error Semantic error ESE0137: Signature is not available here. */ +/* @@? 29:58 Error Semantic error ESE0046: Type 'Array>' is not compatible with type 'FixedArray>' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets index c67ef9ef12..f1930dae5a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets @@ -24,7 +24,7 @@ function main(): int { /* @@ label3 */continue return 0; } -/* @@@ label Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label1 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label2 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label3 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label3 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets index 4796f4bad0..57aed78207 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets @@ -16,4 +16,4 @@ let x: FixedArray = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets index 8190270528..7b64902c2a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets @@ -17,16 +17,16 @@ function foo(...^number: FixedArray): int { return number[0] } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:18 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:41 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:42 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 17:12 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:12 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 17:12 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:18 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:42 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 17:12 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:12 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets index 556218db5c..1f84d7dd79 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets @@ -31,12 +31,12 @@ export class AccessNSieve { } } } -/* @@? 29:10 Error TypeError: Unresolved reference le */ -/* @@? 29:13 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 29:13 Error TypeError: Unresolved reference i */ -/* @@? 29:14 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 29:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 29:16 Error SyntaxError: Expected ')', got 'int'. */ -/* @@? 29:16 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 29:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 29:38 Error SyntaxError: Unexpected token '{'. */ +/* @@? 29:10 Error Semantic error ESE0143: Unresolved reference le */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 29:13 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 29:14 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 29:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 29:16 Error Syntax error ESY0230: Expected ')', got 'int'. */ +/* @@? 29:16 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 29:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 29:38 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets index 311e9b2693..22fbe37669 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets @@ -23,10 +23,10 @@ let func3: (f: (a: number, b: string) => FixedArray): FixedArray // let func3: (f: (a: number, b: string) => FixedArray): FixedArray) => (a: number, b: boolean) => true; -/* @@? 19:8 Error TypeError: 'void' used as type annotation. */ -/* @@? 22:61 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 22:61 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:63 Error SyntaxError: Unexpected token 'FixedArray'. */ -/* @@? 22:63 Error TypeError: Unresolved reference FixedArray */ -/* @@? 22:82 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 22:116 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 19:8 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 22:61 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 22:61 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:63 Error Syntax error ESY0227: Unexpected token 'FixedArray'. */ +/* @@? 22:63 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 22:82 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 22:116 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets index 1b9561b4d5..a5da88c643 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets @@ -15,4 +15,4 @@ let r: (FixedArray<((number))>/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets index 9e88ba3b09..f344b13b1c 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets @@ -15,5 +15,5 @@ // Int[1,2,3,4,5] let a: number = new Int[1 -/* @@? 16:17 Error TypeError: Type 'Array' cannot be assigned to type 'Double' */ -/* @@? 20:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:17 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Double' */ +/* @@? 20:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets index e6bb326eef..63c03bf3a7 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets @@ -15,7 +15,7 @@ let isPrime: FixedArray = new int[[]][[] -/* @@? 16:32 Error TypeError: Type 'FixedArray>' cannot be assigned to type 'FixedArray' */ -/* @@? 16:40 Error TypeError: Can't resolve array type */ -/* @@? 16:44 Error TypeError: Can't resolve array type */ -/* @@? 22:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:32 Error Semantic error ESE0318: Type 'FixedArray>' cannot be assigned to type 'FixedArray' */ +/* @@? 16:40 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 16:44 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 22:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets b/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets index 287b7a65a5..bf4e8174b1 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets @@ -24,4 +24,4 @@ function main() array = /* @@ label */new Bad(); } -/* @@? 24:27 Error TypeError: Type 'Bad' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'Bad' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets index d31642e769..9d9ec2db4f 100644 --- a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets +++ b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets @@ -19,4 +19,4 @@ function main(){ ] } -/* @@? 17:38 Error TypeError: Type 'Array<() => Int>' cannot be assigned to type '() => Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'Array<() => Int>' cannot be assigned to type '() => Array' */ diff --git a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets index 42a51a43a8..ef79a81625 100644 --- a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets +++ b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets @@ -26,5 +26,5 @@ function main(): void { foo() } -/* @@@ label Error TypeError: Variable 'u' is used before being assigned. */ -/* @@@ label1 Error TypeError: Variable 'v' is used before being assigned. */ +/* @@@ label Error Semantic error ESE0375: Variable 'u' is used before being assigned. */ +/* @@@ label1 Error Semantic error ESE0375: Variable 'v' is used before being assigned. */ diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets index 1082b7ab7a..18990a6e70 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets @@ -23,4 +23,4 @@ function main() { c.foo(); } -/* @@@ label Error TypeError: Method 'foo' is declared in I1 and IBase interfaces. */ +/* @@@ label Error Semantic error ESE0187: Method 'foo' is declared in I1 and IBase interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets index 351a1bab9f..695895edf2 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets @@ -23,4 +23,4 @@ function main() { c.foo(); } -/* @@@ label Error TypeError: Method 'foo' is declared in I1 and I2 interfaces. */ +/* @@@ label Error Semantic error ESE0187: Method 'foo' is declared in I1 and I2 interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets index 4c21f812ec..787b6834da 100644 --- a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets +++ b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets @@ -18,7 +18,7 @@ interface A{ gensym%%_4:string; } -/* @@? 18:11 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:12 Error SyntaxError: Invalid Type. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:11 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:12 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidClasses.ets b/ets2panda/test/ast/parser/ets/InvalidClasses.ets index ce65f5f10f..d4902a0b30 100644 --- a/ets2panda/test/ast/parser/ets/InvalidClasses.ets +++ b/ets2panda/test/ast/parser/ets/InvalidClasses.ets @@ -78,56 +78,56 @@ interface I1 { x: number = } -/* @@? 16:9 Error TypeError: A is not abstract and does not override abstract method f5(): Promise in A */ -/* @@? 17:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 17:20 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 18:30 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:21 Error TypeError: Static property 'f' must be accessed through it's class 'A' */ -/* @@? 22:12 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 22:20 Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@? 22:46 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 26:18 Error SyntaxError: Native method cannot be async. */ -/* @@? 27:5 Error TypeError: Non abstract class has abstract method. */ -/* @@? 27:20 Error SyntaxError: Abstract method cannot be async. */ -/* @@? 35:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ -/* @@? 38:10 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 41:5 Error SyntaxError: The special predefined method '$_get' should have exactly one required parameter. */ -/* @@? 41:5 Error SyntaxError: The special predefined method '$_get' cannot be asynchronous. */ -/* @@? 41:16 Error TypeError: Return type of async function must be 'Promise'. */ -/* @@? 45:5 Error SyntaxError: The special predefined method '$_set' should have exactly two required parameter. */ -/* @@? 45:5 Error SyntaxError: The special predefined method '$_set' cannot be asynchronous. */ -/* @@? 45:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 47:5 Error SyntaxError: The special predefined method '$_iterator' cannot be asynchronous. */ -/* @@? 47:5 Error SyntaxError: The special predefined method '$_iterator' should not have parameters. */ -/* @@? 47:21 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ -/* @@? 47:21 Error TypeError: Return type of async function must be 'Promise'. */ -/* @@? 54:21 Error TypeError: Initializers are not allowed in ambient contexts: x */ -/* @@? 54:23 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 58:1 Error TypeError: Unresolved reference declare */ -/* @@? 58:9 Error SyntaxError: Unexpected token 'native'. */ -/* @@? 58:16 Error SyntaxError: 'native' flags must be used for functions only at top-level. */ -/* @@? 58:22 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 58:24 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 58:25 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 58:25 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 58:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 58:25 Error SyntaxError: Unexpected token '}'. */ -/* @@? 61:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 62:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@? 65:5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 66:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@? 66:18 Error SyntaxError: Private interface methods must have body. */ -/* @@? 67:9 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 67:16 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 67:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 67:16 Error SyntaxError: Identifier expected. */ -/* @@? 67:24 Error SyntaxError: Private interface methods must have body. */ -/* @@? 72:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 72:13 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 72:14 Error SyntaxError: Invalid Type. */ -/* @@? 74:5 Error SyntaxError: Extension Getter can only have 1 parameter. */ -/* @@? 74:25 Error SyntaxError: Extension Accessor must have a receiver. */ -/* @@? 78:8 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 78:8 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 79:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:9 Error Semantic error ESE0190: A is not abstract and does not override abstract method f5(): Promise in A */ +/* @@? 17:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 17:20 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 18:30 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:21 Error Semantic error ESE0173: Static property 'f' must be accessed through it's class 'A' */ +/* @@? 22:12 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 22:20 Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@? 22:46 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 26:18 Error Syntax error ESY0116: Native method cannot be async. */ +/* @@? 27:5 Error Semantic error ESE0019: Non abstract class has abstract method. */ +/* @@? 27:20 Error Syntax error ESY0118: Abstract method cannot be async. */ +/* @@? 35:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ +/* @@? 38:10 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 41:5 Error Syntax error ESY0221: The special predefined method '$_get' should have exactly one required parameter. */ +/* @@? 41:5 Error Syntax error ESY0220: The special predefined method '$_get' cannot be asynchronous. */ +/* @@? 41:16 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 45:5 Error Syntax error ESY0222: The special predefined method '$_set' should have exactly two required parameter. */ +/* @@? 45:5 Error Syntax error ESY0220: The special predefined method '$_set' cannot be asynchronous. */ +/* @@? 45:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 47:5 Error Syntax error ESY0220: The special predefined method '$_iterator' cannot be asynchronous. */ +/* @@? 47:5 Error Syntax error ESY0223: The special predefined method '$_iterator' should not have parameters. */ +/* @@? 47:21 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 47:21 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 54:21 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x */ +/* @@? 54:23 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 58:1 Error Semantic error ESE0143: Unresolved reference declare */ +/* @@? 58:9 Error Syntax error ESY0227: Unexpected token 'native'. */ +/* @@? 58:16 Error Syntax error ESY0203: 'native' flags must be used for functions only at top-level. */ +/* @@? 58:22 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 58:24 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 58:25 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 58:25 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 58:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 58:25 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 61:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 62:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@? 65:5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 66:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@? 66:18 Error Syntax error ESY0032: Private interface methods must have body. */ +/* @@? 67:9 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 67:16 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 67:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 67:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 67:24 Error Syntax error ESY0032: Private interface methods must have body. */ +/* @@? 72:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 72:13 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 72:14 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 74:5 Error Syntax error ESY0022: Extension Getter can only have 1 parameter. */ +/* @@? 74:25 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ +/* @@? 78:8 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 78:8 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 79:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets index 4a96a1fe0b..8490b78b55 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets @@ -71,7 +71,7 @@ function f7(a: (b: int = 0) => int): void { /* @@? 18:36 Error SyntaxError: Unexpected token ';'. */ /* @@? 18:36 Error SyntaxError: Unexpected token, expected ')'. */ /* @@? 19:12 Error TypeError: Bad operand type, the types of the operands must be same type. */ -/* @@? 19:25 Error Warning: Type parameter is erased from type 'A' when used in instanceof expression. */ +/* @@? 19:25 Warning Warning: Type parameter is erased from type 'A' when used in instanceof expression. */ /* @@? 22:23 Error SyntaxError: Not enable default value with default undefined. */ /* @@? 24:10 Error TypeError: Only abstract or native methods can't have body. */ /* @@? 24:22 Error SyntaxError: You didn't set the value. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets index 12d43efaec..27141ca74b 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets @@ -36,45 +36,45 @@ function f(x: int): void { a?.[1+2); let a = [1, 2, 3); -/* @@? 16:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:6 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:8 Error SyntaxError: Unexpected token '55'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token ']'. */ -/* @@? 20:5 Error TypeError: Unresolved reference x */ -/* @@? 20:6 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 20:6 Error SyntaxError: Unexpected token '...'. */ -/* @@? 20:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 20:11 Error SyntaxError: Unexpected token '78'. */ -/* @@? 20:13 Error SyntaxError: Unexpected token ']'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token. */ -/* @@? 24:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 24:18 Error TypeError: The type of parameter 'y' cannot be inferred */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:19 Error SyntaxError: Expected '=>', got '...'. */ -/* @@? 24:19 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:24 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 24:32 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 24:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 26:7 Error SyntaxError: Unexpected token '||='. */ -/* @@? 28:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 28:20 Error SyntaxError: Expected '}', got ')'. */ -/* @@? 30:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 30:13 Error SyntaxError: Unexpected token 'import'. */ -/* @@? 30:13 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 30:13 Error SyntaxError: Invalid Type. */ -/* @@? 32:10 Error TypeError: Variable 'f' has already been declared. */ -/* @@? 33:5 Error TypeError: Call to 'super' must be first statement in constructor */ -/* @@? 33:5 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 33:5 Error TypeError: No matching call signature for std.core.Object(Int) */ -/* @@? 33:10 Error SyntaxError: Unexpected super keyword. */ -/* @@? 36:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 36:8 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 38:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 38:17 Error SyntaxError: Unexpected token ')'. */ -/* @@? 38:17 Error SyntaxError: Unexpected token, expected ',' or ']'. */ +/* @@? 16:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:3 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:6 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token '55'. */ +/* @@? 18:10 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 20:5 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 20:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 20:6 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 20:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 20:11 Error Syntax error ESY0227: Unexpected token '78'. */ +/* @@? 20:13 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 22:11 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 24:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 24:18 Error Semantic error ESE0132: The type of parameter 'y' cannot be inferred */ +/* @@? 24:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:19 Error Syntax error ESY0230: Expected '=>', got '...'. */ +/* @@? 24:19 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:24 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 24:32 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 24:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 26:7 Error Syntax error ESY0227: Unexpected token '||='. */ +/* @@? 28:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 28:20 Error Syntax error ESY0230: Expected '}', got ')'. */ +/* @@? 30:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 30:13 Error Syntax error ESY0227: Unexpected token 'import'. */ +/* @@? 30:13 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 30:13 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 32:10 Error Semantic error ESE0351: Variable 'f' has already been declared. */ +/* @@? 33:5 Error Semantic error ESE0201: Call to 'super' must be first statement in constructor */ +/* @@? 33:5 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 33:5 Error Semantic error ESE0127: No matching call signature for std.core.Object(Int) */ +/* @@? 33:10 Error Syntax error ESY0061: Unexpected super keyword. */ +/* @@? 36:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 36:8 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 38:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 38:17 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 38:17 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets index 899de53972..b9be4c2559 100644 --- a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets +++ b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets @@ -22,7 +22,5 @@ function fun(this: A) {} class int {} -/* @@? 17:12 Error TypeError: Getter must return a value */ -/* @@? 18:5 Error SyntaxError: Getter must not have formal parameters. */ -/* @@? 19:1 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 23:7 Error SyntaxError: int is a predefined type, cannot be used as an identifier */ +/* @@? 18:5 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@? 19:1 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets index 07c11ed802..dfe533ea24 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets @@ -51,21 +51,21 @@ class A { throw "abc" // there were more errors -/* @@? 22:1 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 25:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 28:1 Error TypeError: Function f is already declared. */ -/* @@? 29:5 Error SyntaxError: Illegal start of STRUCT expression. */ -/* @@? 30:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 32:5 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 36:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 40:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 40:5 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 40:8 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 42:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 43:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 45:9 Error SyntaxError: Unexpected token '{'. */ -/* @@? 47:1 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 48:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 52:1 Error SyntaxError: Illegal newline after throw. */ -/* @@? 72:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 25:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 28:1 Error Semantic error ESE0130: Function f is already declared. */ +/* @@? 29:5 Error Syntax error ESY0040: Illegal start of STRUCT expression. */ +/* @@? 30:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 32:5 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 36:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 40:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 40:5 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@? 40:8 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 42:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 43:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 45:9 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 47:1 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 48:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 52:1 Error Syntax error ESY0172: Illegal newline after throw. */ +/* @@? 72:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets index c3d305e424..066e6ca2cd 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets @@ -50,15 +50,15 @@ function g(x: int): int { } -/* @@? 16:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:27 Error TypeError: struct B is not extensible. */ -/* @@? 30:17 Error SyntaxError: Label already declared. */ -/* @@? 40:1 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 40:8 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 43:12 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 44:9 Error SyntaxError: Expected ')', got 'case'. */ -/* @@? 44:9 Error SyntaxError: Expected '{', got 'case'. */ -/* @@? 46:15 Error SyntaxError: Unexpected token ':'. */ -/* @@? 46:17 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 48:9 Error SyntaxError: Multiple default clauses. */ +/* @@? 16:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:27 Error Semantic error ESE0177: struct B is not extensible. */ +/* @@? 30:17 Error Syntax error ESY0214: Label already declared. */ +/* @@? 40:1 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 40:8 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 43:12 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 44:9 Error Syntax error ESY0230: Expected ')', got 'case'. */ +/* @@? 44:9 Error Syntax error ESY0230: Expected '{', got 'case'. */ +/* @@? 46:15 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 46:17 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 48:9 Error Syntax error ESY0171: Multiple default clauses. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets index df0218f8da..cbc8e3357b 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets @@ -41,21 +41,21 @@ function foo() { for (let i = 1 in [0, 1, 2]) {} -/* @@? 19:1 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 22:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 23:11 Error SyntaxError: Expected '{', got '('. */ -/* @@? 23:11 Error TypeError: Unresolved reference x */ -/* @@? 27:7 Error SyntaxError: Expected '(', got '{'. */ -/* @@? 27:7 Error TypeError: need to specify target type for class composite */ -/* @@? 29:1 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 29:7 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 29:13 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 31:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 31:13 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 34:5 Error SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. */ -/* @@? 38:5 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 38:5 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 38:13 Error SyntaxError: Unexpected token '@'. */ -/* @@? 38:14 Error TypeError: Cannot find type 'annotate'. */ -/* @@? 42:16 Error SyntaxError: for-in loop variable declaration may not have an initializer. */ -/* @@? 42:16 Error SyntaxError: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ +/* @@? 19:1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 22:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 23:11 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 23:11 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 27:7 Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:7 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 29:1 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 29:7 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 31:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 31:13 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 34:5 Error Syntax error ESY0199: Illegal 'use strict' directive in function with non-simple parameter list. */ +/* @@? 38:5 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 38:5 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 38:13 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 38:14 Error Semantic error ESE0371: Cannot find type 'annotate'. */ +/* @@? 42:16 Error Syntax error ESY0164: for-in loop variable declaration may not have an initializer. */ +/* @@? 42:16 Error Syntax error ESY6987: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidTyped.ets b/ets2panda/test/ast/parser/ets/InvalidTyped.ets index c194bd8831..8ad7213a06 100644 --- a/ets2panda/test/ast/parser/ets/InvalidTyped.ets +++ b/ets2panda/test/ast/parser/ets/InvalidTyped.ets @@ -30,26 +30,26 @@ interface I { // This should be the last test to show the absent of the '}'. -/* @@? 16:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:21 Error SyntaxError: Identifier expected. */ -/* @@? 16:21 Error TypeError: Interface expected here. */ -/* @@? 16:23 Error SyntaxError: Identifier expected. */ -/* @@? 16:23 Error TypeError: Interface expected here. */ -/* @@? 18:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 18:1 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 18:23 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:25 Error SyntaxError: Identifier expected. */ -/* @@? 20:1 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 20:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 20:21 Error SyntaxError: Identifier expected. */ -/* @@? 22:20 Error SyntaxError: Implements clause can not be empty. */ -/* @@? 24:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 24:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 24:21 Error SyntaxError: Expected '{', got ','. */ -/* @@? 24:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 26:13 Error SyntaxError: Interface declaration cannot have 'implements' clause. */ -/* @@? 28:1 Error TypeError: Variable 'I' has already been declared. */ -/* @@? 28:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 29:5 Error SyntaxError: 'override' modifier cannot appear in interfaces. */ -/* @@? 56:1 Error SyntaxError: Unexpected token, expected '}'. */ +/* @@? 16:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:21 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 16:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:23 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 18:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 18:1 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 18:23 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:25 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:1 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 20:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 20:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 22:20 Error Syntax error ESY0185: Implements clause can not be empty. */ +/* @@? 24:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 24:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 24:21 Error Syntax error ESY0230: Expected '{', got ','. */ +/* @@? 24:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 26:13 Error Syntax error ESY0177: Interface declaration cannot have 'implements' clause. */ +/* @@? 28:1 Error Semantic error ESE0351: Variable 'I' has already been declared. */ +/* @@? 28:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 29:5 Error Syntax error ESY0189: 'override' modifier cannot appear in interfaces. */ +/* @@? 56:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ diff --git a/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets b/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets index 335d3e99b4..82aa2acd39 100644 --- a/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets +++ b/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets @@ -18,6 +18,6 @@ function main(){ Test escape characters` | "X"; } -/* @@? 17:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 17:15 Error SyntaxError: Invalid character escape sequence. */ -/* @@? 17:15 Error SyntaxError: Invalid Unicode escape. */ +/* @@? 17:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 17:15 Error Syntax error ESY0258: Invalid character escape sequence. */ +/* @@? 17:15 Error Syntax error ESY0091: Invalid Unicode escape. */ diff --git a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets index 2eca08c7dc..c4f780bd1a 100644 --- a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets @@ -29,12 +29,12 @@ class /* @@ label3 */77 {} class /* @@ label4 */{/* @@ label5 */} -/* @@? 17:19 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 21:20 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 24:17 Error TypeError: Type '"abc"' cannot be assigned to type 'Double' */ -/* @@? 28:22 Error SyntaxError: Number, string or computed value property name '77' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 28:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 30:22 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 30:38 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 41:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 24:17 Error Semantic error ESE0318: Type '"abc"' cannot be assigned to type 'Double' */ +/* @@@ label3 Error Syntax error ESY0315: Number, string or computed value property name '77' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label3 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@@ label4 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@@ label5 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 41:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets index 5db33dcca0..73af6fedcb 100644 --- a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets @@ -20,8 +20,8 @@ function /* @@ label1 */(): /* @@ label2 */{ /* @@ label3 */return /* @@ label4 */77; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label2 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label3 Error SyntaxError: Unexpected token 'return'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '77'. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label2 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '77'. */ diff --git a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets index f4c6092e3d..6a1c2c9487 100644 --- a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets @@ -166,126 +166,126 @@ function main(): void { f(); } -/* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */ -/* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ -/* @@? 37:33 Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@? 37:33 Error TypeError: Unresolved reference rethrows */ -/* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 39:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 39:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 39:31 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 39:38 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 41:1 Error TypeError: Unresolved reference type */ -/* @@? 41:6 Error SyntaxError: Unexpected token '123'. */ -/* @@? 41:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 41:10 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 41:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 43:6 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 43:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 43:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 43:13 Error SyntaxError: Unexpected token 'byte'. */ -/* @@? 45:6 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 45:6 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 45:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 45:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 47:8 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 47:8 Error TypeError: Missing initializer in const declaration */ -/* @@? 49:13 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 51:25 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 51:27 Error SyntaxError: Unexpected token '...'. */ -/* @@? 51:30 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 51:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 51:38 Error SyntaxError: Unexpected token ')'. */ -/* @@? 51:39 Error SyntaxError: Unexpected token ':'. */ -/* @@? 51:41 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:45 Error SyntaxError: Unexpected token '{'. */ -/* @@? 52:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 52:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 52:12 Error TypeError: Unresolved reference q */ -/* @@? 52:23 Error TypeError: Unresolved reference p */ -/* @@? 55:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 59:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 67:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 67:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 68:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 73:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 73:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 74:11 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 77:20 Error TypeError: Interface expected here. */ -/* @@? 77:22 Error TypeError: 'I' type does not exist. */ -/* @@? 78:22 Error TypeError: Method fee(): Int in B not overriding any method */ -/* @@? 83:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 83:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 84:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 92:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 92:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 93:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 103:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 104:21 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 115:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 115:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 115:32 Error TypeError: Unresolved reference U */ -/* @@? 115:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 115:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 115:36 Error TypeError: Unresolved reference T */ -/* @@? 115:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 116:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 116:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 119:1 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 119:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 119:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 119:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 119:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 119:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 119:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 120:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 120:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 123:5 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 123:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 123:6 Error SyntaxError: Unexpected token 'abc'. */ -/* @@? 123:6 Error TypeError: Unresolved reference abc */ -/* @@? 125:1 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ -/* @@? 127:1 Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@? 132:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Catch clause variable cannot have an initializer. */ -/* @@? 137:18 Error SyntaxError: Unexpected token '0'. */ -/* @@? 137:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 137:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 141:24 Error TypeError: This expression is not callable. */ -/* @@? 145:18 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 146:28 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 148:25 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 149:24 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 151:20 Error TypeError: Cannot find type 'D0'. */ -/* @@? 151:29 Error TypeError: Cannot find type 'D0'. */ -/* @@? 157:16 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 158:26 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 161:9 Error SyntaxError: Identifier expected, got 'let'. */ -/* @@? 161:9 Error SyntaxError: Hard keyword 'let' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Identifier expected, got 'const'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 292:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:14 Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ +/* @@? 28:29 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 34:14 Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@? 37:33 Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@? 37:33 Error Semantic error ESE0143: Unresolved reference rethrows */ +/* @@? 39:14 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 39:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 39:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 39:24 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 39:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 39:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 39:31 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 39:38 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 41:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 41:6 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 41:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 41:10 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 41:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 43:6 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 43:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 43:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 43:13 Error Syntax error ESY0227: Unexpected token 'byte'. */ +/* @@? 45:6 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 45:6 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 45:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 45:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 47:8 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 47:8 Error Semantic error ESE0363: Missing initializer in const declaration */ +/* @@? 49:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 51:25 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 51:27 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 51:30 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 51:33 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 51:38 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 51:39 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 51:41 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:45 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 52:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 52:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 52:12 Error Semantic error ESE0143: Unresolved reference q */ +/* @@? 52:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 55:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 59:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 67:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 67:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 68:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 73:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 73:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 74:11 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 77:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 77:22 Error Semantic error ESE0070: 'I' type does not exist. */ +/* @@? 78:22 Error Semantic error ESE0136: Method fee(): Int in B not overriding any method */ +/* @@? 83:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 83:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 84:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 92:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 92:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 93:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 103:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 104:21 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 115:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 115:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 115:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 115:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 115:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 115:32 Error Semantic error ESE0143: Unresolved reference U */ +/* @@? 115:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 115:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 115:36 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 115:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 116:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 116:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 119:1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 119:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 119:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 119:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 119:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 119:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 119:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 119:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 119:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 120:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 120:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 123:5 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 123:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 123:6 Error Syntax error ESY0227: Unexpected token 'abc'. */ +/* @@? 123:6 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@? 125:1 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 127:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ +/* @@? 132:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:18 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 137:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 137:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 141:24 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 145:18 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 146:28 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 148:25 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 149:24 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 151:20 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 151:29 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 157:16 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 158:26 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 161:9 Error Syntax error ESY0224: Identifier expected, got 'let'. */ +/* @@? 161:9 Error Syntax error ESY0316: Hard keyword 'let' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0224: Identifier expected, got 'const'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 164:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 165:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 166:5 Error Semantic error ESE0128: No matching call signature */ +/* @@? 292:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/SmartCast_3.ets b/ets2panda/test/ast/parser/ets/SmartCast_3.ets index d65b202e6a..08144650f2 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_3.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_3.ets @@ -23,4 +23,4 @@ function main() { /* @@ label */resolve("abc"); // no smart cast! } -/* @@@ label Error TypeError: This expression is not callable. */ +/* @@@ label Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/SmartCast_4.ets b/ets2panda/test/ast/parser/ets/SmartCast_4.ets index 68cd1d342b..09fd6b45c5 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_4.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_4.ets @@ -25,4 +25,4 @@ function main() { } } -/* @@@ label Error TypeError: Type 'Double|String|undefined' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double|String|undefined' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/StringFasta.ets b/ets2panda/test/ast/parser/ets/StringFasta.ets index 758d82839f..21bb79868f 100644 --- a/ets2panda/test/ast/parser/ets/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/StringFasta.ets @@ -122,57 +122,57 @@ function main(): void { a.run(); } -/* @@? 18:18 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 18:46 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:22 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:50 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 21:9 Error TypeError: Unresolved reference IUB */ -/* @@? 22:9 Error TypeError: Unresolved reference IUB */ -/* @@? 23:9 Error TypeError: Unresolved reference IUB */ -/* @@? 24:9 Error TypeError: Unresolved reference IUB */ -/* @@? 25:9 Error TypeError: Unresolved reference IUB */ -/* @@? 26:9 Error TypeError: Unresolved reference IUB */ -/* @@? 27:9 Error TypeError: Unresolved reference IUB */ -/* @@? 28:9 Error TypeError: Unresolved reference IUB */ -/* @@? 29:9 Error TypeError: Unresolved reference IUB */ -/* @@? 30:9 Error TypeError: Unresolved reference IUB */ -/* @@? 31:9 Error TypeError: Unresolved reference IUB */ -/* @@? 32:9 Error TypeError: Unresolved reference IUB */ -/* @@? 33:9 Error TypeError: Unresolved reference IUB */ -/* @@? 34:9 Error TypeError: Unresolved reference IUB */ -/* @@? 35:9 Error TypeError: Unresolved reference IUB */ -/* @@? 36:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 37:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 38:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 39:9 Error TypeError: Unresolved reference HomoSap */ -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 47:13 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:21 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:28 Error TypeError: Static property 'A' must be accessed through it's class 'Random' */ -/* @@? 47:32 Error TypeError: Static property 'C' must be accessed through it's class 'Random' */ -/* @@? 47:37 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 48:26 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 48:33 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 52:35 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ -/* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ -/* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ -/* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ -/* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 113:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:46 Error TypeError: Unresolved reference IUB */ -/* @@? 114:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 114:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 114:46 Error TypeError: Unresolved reference HomoSap */ -/* @@? 116:36 Error TypeError: 'expected' is a static property of 'StringFasta' */ +/* @@? 18:18 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 18:46 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:22 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:50 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 22:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 24:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 25:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 26:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 27:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 28:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 29:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 30:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 31:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 32:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 33:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 34:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 35:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 36:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 37:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 38:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 39:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:13 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:21 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:28 Error Semantic error ESE0173: Static property 'A' must be accessed through it's class 'Random' */ +/* @@? 47:32 Error Semantic error ESE0173: Static property 'C' must be accessed through it's class 'Random' */ +/* @@? 47:37 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 48:26 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 48:33 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 52:35 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 53:27 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Char' */ +/* @@? 54:26 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 54:57 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 71:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 84:41 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 86:9 Error Semantic error ESE0173: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ +/* @@? 94:34 Error Semantic error ESE0173: Static property 'Random' must be accessed through it's class 'StringFasta' */ +/* @@? 95:34 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 95:65 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 103:20 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 112:16 Error Semantic error ESE0173: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ +/* @@? 112:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 113:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:46 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 114:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 114:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 114:46 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 116:36 Error Semantic error ESE0207: 'expected' is a static property of 'StringFasta' */ diff --git a/ets2panda/test/ast/parser/ets/StructTest1.ets b/ets2panda/test/ast/parser/ets/StructTest1.ets index e6ffe7bc43..9e7717fc18 100644 --- a/ets2panda/test/ast/parser/ets/StructTest1.ets +++ b/ets2panda/test/ast/parser/ets/StructTest1.ets @@ -20,4 +20,4 @@ struct CE { function main(): void { let a: CE = new CE; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/StructTest2.ets b/ets2panda/test/ast/parser/ets/StructTest2.ets index e660ecd89a..6a05f974bb 100644 --- a/ets2panda/test/ast/parser/ets/StructTest2.ets +++ b/ets2panda/test/ast/parser/ets/StructTest2.ets @@ -21,4 +21,4 @@ function main(): void { let a: CE = new CE(); } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/StructTest3.ets b/ets2panda/test/ast/parser/ets/StructTest3.ets index 309547f41a..ffd431d4bb 100644 --- a/ets2panda/test/ast/parser/ets/StructTest3.ets +++ b/ets2panda/test/ast/parser/ets/StructTest3.ets @@ -16,4 +16,4 @@ struct MyStruct { } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets index 7e6119a026..4407c2ff87 100644 --- a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets +++ b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets @@ -20,14 +20,14 @@ function main(): void { } } -/* @@? 18:19 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:25 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 18:38 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:68 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:72 Error TypeError: Unresolved reference f */ -/* @@? 18:78 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:82 Error SyntaxError: Expected ')', got ';'. */ -/* @@? 19:4 Error TypeError: Unresolved reference i */ -/* @@? 19:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:12 Error SyntaxError: Unexpected token '{'. */ +/* @@? 18:19 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:25 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 18:38 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:68 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:72 Error Semantic error ESE0143: Unresolved reference f */ +/* @@? 18:78 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:82 Error Syntax error ESY0230: Expected ')', got ';'. */ +/* @@? 19:4 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets index e498973b8d..92ea1cfa5a 100644 --- a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets +++ b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets @@ -17,4 +17,4 @@ abstract class A{ abstract /* @@ label */constructor(val: int); }; -/* @@@ label Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@@ label Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/access_modifier_1.ets b/ets2panda/test/ast/parser/ets/access_modifier_1.ets index 0ef12a8a6e..65abd43026 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_1.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_1.ets @@ -17,4 +17,4 @@ class A { final /* @@ label */public foo(): void {} } -/* @@@ label Error SyntaxError: Access modifier must precede field and method modifiers. */ +/* @@@ label Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/access_modifier_4.ets b/ets2panda/test/ast/parser/ets/access_modifier_4.ets index 2a88b634ae..f1524afb41 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_4.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_4.ets @@ -17,4 +17,4 @@ class A { static /* @@ label */public n: int; } -/* @@@ label Error SyntaxError: Access modifier must precede field and method modifiers. */ +/* @@@ label Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/accessor_call.ets b/ets2panda/test/ast/parser/ets/accessor_call.ets index 918aaffe39..82feb3faf3 100644 --- a/ets2panda/test/ast/parser/ets/accessor_call.ets +++ b/ets2panda/test/ast/parser/ets/accessor_call.ets @@ -21,4 +21,4 @@ function main(): void { /* @@ label */new A().x(); } -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ diff --git a/ets2panda/test/ast/parser/ets/accessor_void.ets b/ets2panda/test/ast/parser/ets/accessor_void.ets index 966e7b1f3f..d54183238b 100644 --- a/ets2panda/test/ast/parser/ets/accessor_void.ets +++ b/ets2panda/test/ast/parser/ets/accessor_void.ets @@ -17,4 +17,4 @@ class A { get x/* @@ label */(): void { } } -/* @@@ label Error TypeError: Getter must return a value */ +/* @@@ label Error Semantic error ESE0086: Getter must return a value */ diff --git a/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets b/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets index df3867b378..7a16558a39 100644 --- a/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets +++ b/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets @@ -33,8 +33,8 @@ class B { } } -/* @@? 18:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 21:5 Error SyntaxError: Getter must not have formal parameters. */ -/* @@? 21:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 24:1 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 31:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 18:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 21:5 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@? 21:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 24:1 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@? 31:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets b/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets index 1428f6e5ba..d79f6dfd6d 100644 --- a/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets +++ b/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets @@ -16,4 +16,4 @@ declare class B -/* @@? 20:1 Error SyntaxError: Ambient class declarations must have a body. */ +/* @@? 20:1 Error Syntax error ESY0004: Ambient class declarations must have a body. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_declaration.ets index ee8515f116..0ea6e5cef7 100644 --- a/ets2panda/test/ast/parser/ets/ambient_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_declaration.ets @@ -15,7 +15,7 @@ declare /* @@ label1 */module /* @@ label2 */"someModule" /* @@ label3 */{} -/* @@@ label1 Error SyntaxError: Ambient module declaration is not supported! */ -/* @@@ label1 Error TypeError: Unresolved reference module */ -/* @@@ label2 Error SyntaxError: Unexpected token 'someModule'. */ -/* @@@ label3 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0308: Ambient module declaration is not supported! */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference module */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'someModule'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets index 6089b2b446..54ab9b14c7 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets @@ -19,4 +19,4 @@ declare class ClassWithSymbols { } -/* @@@ label1 Error SyntaxError: Only one index signature can exist in a class */ +/* @@@ label1 Error Syntax error ESY0326: Only one index signature can exist in a class */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets index d1c5273f0c..af488484a8 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets @@ -21,4 +21,4 @@ function main() { let a : A = new A(); } -/* @@? 17:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ \ No newline at end of file +/* @@? 17:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets index 4f06b3693e..5dd331782b 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets @@ -21,12 +21,4 @@ function main() { let a : A = new A(); } -/* @@? 17:14 Error SyntaxError: Index type must be number in index signature. */ -/* @@? 17:14 Error SyntaxError: ] expected in index signature. */ -/* @@? 17:20 Error SyntaxError: An index signature must have a type annotation. */ -/* @@? 17:20 Error SyntaxError: Expected ':', got ']'. */ -/* @@? 17:20 Error SyntaxError: Invalid Type. */ -/* @@? 17:20 Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@? 17:20 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:24 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ +/* @@? 17:24 Error Syntax error ESY0000: An index signature must have a type annotation */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets index 33e4fff0d1..7b77f6f74e 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets @@ -21,7 +21,7 @@ declare class A { let a : A = new A(); } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label Error SyntaxError: Expected ':', got '}'. */ -/* @@@ label Error SyntaxError: Invalid Type. */ -/* @@@ label Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ +/* @@@ label Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got '}'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets index 7ea0d48dd4..44c88f0bdd 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets @@ -21,6 +21,6 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Invalid Type. */ -/* @@@ label Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@@ label Error SyntaxError: Unexpected token '?'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '?'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets index c9e6ef112e..ea8377647c 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets @@ -21,6 +21,6 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: ] expected in index signature. */ -/* @@@ label1 Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label1 Error SyntaxError: Expected ':', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0019: ] expected in index signature. */ +/* @@@ label1 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets index 62e5623e90..ef5a18a4fb 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets @@ -21,8 +21,8 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Index type expected in index signature. */ -/* @@@ label1 Error SyntaxError: Index type must be number in index signature. */ -/* @@@ label1 Error SyntaxError: ] expected in index signature. */ -/* @@@ label2 Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label2 Error SyntaxError: Expected ':', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0017: Index type expected in index signature. */ +/* @@@ label1 Error Syntax error ESY0018: Index type must be number in index signature. */ +/* @@@ label1 Error Syntax error ESY0019: ] expected in index signature. */ +/* @@@ label2 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label2 Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets index 8d48e6cdbb..fe2b55a642 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets @@ -21,4 +21,4 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Unexpected token '&'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '&'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets index 749b248c23..c9b93dc8fb 100644 --- a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets @@ -18,4 +18,4 @@ declare class C { [Symbol.iterator]/* @@ label */(): A; } -/* @@@ label Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@@ label Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets index e16e6af524..4a575a6c55 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets @@ -23,4 +23,4 @@ function main (): void { /* @@ label */goo (new X()) } -/* @@@ label Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p1: I1): void` and `goo(p2: I2): void` */ +/* @@@ label Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p1: I1): void` and `goo(p2: I2): void` */ diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets index 4d3d2c8539..d8bd3859a7 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets @@ -27,5 +27,5 @@ function main (): void { goo (0, new X(), "ambiguous") } -/* @@? 27:5 Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I5, s: String): void` */ -/* @@? 27:5 Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I2, s: String): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I5, s: String): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I2, s: String): void` */ diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets index 9b9498171d..95b98bf67d 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets @@ -23,4 +23,4 @@ function main (): void { /* @@ label */goo (new X()) } -/* @@@ label Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p2: B): void` and `goo(p1: I1): void` */ +/* @@@ label Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p2: B): void` and `goo(p1: I1): void` */ diff --git a/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets b/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets index f3fefe0e9d..42fb0b7633 100644 --- a/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets +++ b/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets @@ -45,6 +45,6 @@ class C{ public foo() {} } -/* @@? 29:4 Error SyntaxError: Missing type annotation for property 'b'. */ -/* @@? 42:11 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 44:16 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 29:4 Error Syntax error ESY0001: Missing type annotation for property 'b'. */ +/* @@? 42:11 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 44:16 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets index 1c44ded693..75112fb9bf 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets @@ -20,6 +20,6 @@ class A{} } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets index 8c6f67789b..747d0028cf 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets @@ -18,5 +18,5 @@ } -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets index 8ede82f797..fda9731589 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets @@ -19,4 +19,4 @@ class A{} testProperty1: string = /* @@ label */(a:int)=>{} } -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets index 9a1ce8d5b9..9727504e28 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets @@ -16,5 +16,5 @@ @interface MyAnno {} class /* @@ label */MyAnno {} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ -/* @@@ label Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets index 9fc03e1561..98aeca9999 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets @@ -16,4 +16,4 @@ interface MyAnno {} enum /* @@ label */MyAnno {one, two, three} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets index 902ec6220d..c5f80d6350 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets @@ -18,4 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets index 996f31f8ad..f0e0bc45da 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets @@ -18,4 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets index 662e92b925..0fa660b910 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets @@ -18,4 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets index 91db8071ef..8f083321d8 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets @@ -18,5 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ - +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets index 12d9c22c9d..18023b8304 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets @@ -16,5 +16,5 @@ @interface MyAnno {} /* @@ label */interface MyAnno {} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ -/* @@@ label Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets index 17b793bf6c..72e7234b08 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets @@ -17,5 +17,5 @@ class A{ } -/* @@? 16:6 Error SyntaxError: Annotations can only be declared at the top level. */ -/* @@? 16:6 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 16:6 Error Syntax error ESY0114: Annotations can only be declared at the top level. */ +/* @@? 16:6 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets index 364f83c4d5..e3173c8420 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets @@ -19,4 +19,4 @@ class A{} testProperty1 /* @@ label */= 1 } -/* @@@ label Error SyntaxError: Missing type annotation for property 'testProperty1'. */ +/* @@@ label Error Syntax error ESY0001: Missing type annotation for property 'testProperty1'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets index be4d572baa..41d8c0766d 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets @@ -19,4 +19,4 @@ class A{} testProperty1 /* @@ label */} -/* @@@ label Error SyntaxError: Missing type annotation for property 'testProperty1'. */ +/* @@@ label Error Syntax error ESY0001: Missing type annotation for property 'testProperty1'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets index 14e1b15227..fbae092c7f 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets @@ -17,4 +17,4 @@ a: @Anno } -/* @@? 18:1 Error SyntaxError: Invalid Type. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets index 5e37281975..39ba4f0b66 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets @@ -17,4 +17,4 @@ testProperty2: number } -/* @@@ label Error SyntaxError: Identifier expected, got ','. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ','. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets index 837d0ff787..5aeb294e48 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets @@ -18,8 +18,8 @@ testProperty2: number } -/* @@? 18:18 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 18:20 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 19:1 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:5 Error TypeError: Unresolved reference testProperty2 */ -/* @@? 18:5 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference testProperty2 */ +/* @@? 18:5 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 18:18 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 18:20 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 19:1 Error Syntax error ESY0224: Identifier expected, got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets index 59e11cb6ca..3712fc0ba3 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets @@ -17,8 +17,8 @@ testProperty2/* @@ label1 */: number } -/* @@@ label1 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 17:35 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 18:1 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 17:5 Error TypeError: Unresolved reference testProperty2 */ -/* @@? 17:5 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference testProperty2 */ +/* @@? 17:5 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 17:35 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 18:1 Error Syntax error ESY0224: Identifier expected, got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets index 88cfdb4017..b284768d36 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets @@ -19,7 +19,7 @@ import * as Src from "./annotation_export" Src.MyAnno class /* @@ label */A/* @@ label1 */{} -/* @@? 19:1 Error TypeError: Class literal is not yet supported. */ -/* @@? 20:21 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 20:21 Error TypeError: Unresolved reference A */ -/* @@? 20:37 Error SyntaxError: Unexpected token '{'. */ +/* @@? 19:1 Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference A */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets index 5648eba09f..098de508c5 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets @@ -19,4 +19,4 @@ import * as Src from "./annotation_export" /* @@ label */Src.MyAnno() class A{} -/* @@@ label Error TypeError: MyAnno is an annotation therefore cannot be instantiated. */ +/* @@@ label Error Semantic error ESE0396: MyAnno is an annotation therefore cannot be instantiated. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets index e7a3b43456..ed21dabae6 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets @@ -19,7 +19,7 @@ import * as Src from "./annotation_export" Src.@MyAnno() class A{} -/* @@? 19:5 Error SyntaxError: Identifier expected. */ -/* @@? 19:5 Error SyntaxError: Identifier expected, got '@'. */ -/* @@? 19:6 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 19:6 Error TypeError: Unresolved reference MyAnno */ +/* @@? 19:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 19:5 Error Syntax error ESY0224: Identifier expected, got '@'. */ +/* @@? 19:6 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 19:6 Error Semantic error ESE0143: Unresolved reference MyAnno */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets index 9912bc89a8..fb0ca8bc38 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets @@ -18,5 +18,5 @@ } -/* @@? 15:1 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 15:3 Error SyntaxError: Unexpected token 'interface'. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 15:3 Error Syntax error ESY0227: Unexpected token 'interface'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets index 4cb6fd937b..16ccb0db4c 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets @@ -27,4 +27,4 @@ testProperty4: number } -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets index 00384aaf23..695d069db4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets @@ -16,6 +16,6 @@ public @interface MyAnno { testProperty1: string } -/* @@? 15:1 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 15:1 Error SyntaxError: Unexpected token 'public'. */ -/* @@? 15:8 Error SyntaxError: Unexpected token '@'. */ +/* @@? 15:1 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token 'public'. */ +/* @@? 15:8 Error Syntax error ESY0227: Unexpected token '@'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets index 4e855e39f4..c9c2a58bda 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets @@ -16,6 +16,6 @@ private @interface MyAnno { testProperty1: string } -/* @@? 15:1 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 15:1 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 15:9 Error SyntaxError: Unexpected token '@'. */ +/* @@? 15:1 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 15:9 Error Syntax error ESY0227: Unexpected token '@'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets index 9128014805..87cad4b468 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets @@ -17,5 +17,5 @@ } -/* @@@ label Error SyntaxError: Unexpected token 'static'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '@'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '@'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets index 02ed066c23..a1bc7c3fd1 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets @@ -17,9 +17,9 @@ class A{} } -/* @@? 17:5 Error SyntaxError: Hard keyword 'class' cannot be used as identifier */ -/* @@? 17:5 Error SyntaxError: Identifier expected, got 'class'. */ -/* @@? 17:12 Error SyntaxError: Missing type annotation for property 'A'. */ -/* @@? 17:12 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 17:13 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:5 Error Syntax error ESY0316: Hard keyword 'class' cannot be used as identifier */ +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got 'class'. */ +/* @@? 17:12 Error Syntax error ESY0001: Missing type annotation for property 'A'. */ +/* @@? 17:12 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 17:13 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets index 328a7d5fea..b1a15480bb 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets @@ -18,10 +18,10 @@ } -/* @@? 17:8 Error SyntaxError: Annotation can not have method as property. */ -/* @@? 17:8 Error SyntaxError: Missing type annotation for property 'foo'. */ -/* @@? 17:8 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 17:9 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 17:10 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 17:11 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:8 Error Syntax error ESY0025: Annotation can not have method as property. */ +/* @@? 17:8 Error Syntax error ESY0001: Missing type annotation for property 'foo'. */ +/* @@? 17:8 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 17:9 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 17:10 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 17:11 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets index 2fb3feaa78..fcae260b2e 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets @@ -23,6 +23,6 @@ class A{} class B{} -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets index 4b52a661a3..03a0ec36fb 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets @@ -22,6 +22,6 @@ class A{} @MyAnno(/* @@ label */new A()) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 22:23 Error TypeError: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets index 0c71b47706..e3acd04335 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets @@ -21,5 +21,5 @@ class B{} -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets index 578d3567c6..dd6cc44d50 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets @@ -21,5 +21,5 @@ @MyAnno({testProperty1: "1", testProperty2: [1, 2, a]}) class B{} -/* @@? 21:45 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 21:52 Error TypeError: Unresolved reference a */ +/* @@? 21:45 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 21:52 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets index 587d3a3031..11adb1430b 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets @@ -21,4 +21,4 @@ @MyAnno({testProperty1: /* @@ label */{s: A}, testProperty2: 1}) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets index 785dbfea7e..b21f7ab220 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets @@ -20,6 +20,6 @@ @MyAnno(/* @@ label */(a: int) => {}) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 20:23 Error TypeError: Type '(a: Int) => void' cannot be assigned to type 'String' */ -/* @@? 20:23 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type '(a: Int) => void' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets index d507754484..8f813c5686 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets @@ -20,6 +20,6 @@ function foo(@MyAnno ...a){} -/* @@? 22:15 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 22:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ +/* @@? 22:15 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 22:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets index 389af848c7..2366d069cb 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets @@ -28,9 +28,9 @@ class B{ } -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label2 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label2 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label2 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label2 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label2 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label2 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets index cf347df6c7..b1404c53b9 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets @@ -23,6 +23,6 @@ class A{} function foo(@MyAnno({testProperty1: /* @@ label */A}) x: int) { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets index 535b365f32..40e7d07331 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets @@ -24,6 +24,6 @@ class A{} let x = "abc" -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets index d544f882f7..e8d9f036f0 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets @@ -25,6 +25,6 @@ interface itf { foo() : string } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets index ae609bf8f8..f2bed7dc2b 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets @@ -25,6 +25,6 @@ interface itf { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets index 4ce655dabf..22058337f3 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets @@ -25,6 +25,8 @@ interface itf { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets index 7a6cad9d41..9f8c7171d9 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets @@ -19,5 +19,5 @@ @ClassAuthor (x: 1) => x * 2; -/* @@? 20:2 Error TypeError: Cannot find type 'ClassAuthor'. */ -/* @@? 20:18 Error SyntaxError: Invalid Type. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0371: Cannot find type 'ClassAuthor'. */ +/* @@? 20:18 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets index 9c65ff8922..714891d828 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets @@ -26,6 +26,6 @@ function main():void { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets index d066379ae2..91abf2c1e9 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets @@ -29,8 +29,8 @@ function main(): void { } -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets index 2bab477ef1..dcb347521f 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets @@ -22,5 +22,5 @@ const invalidUsage2 = @AddMetadata("array") [1, 2, 3]; -/* @@? 20:45 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 21:45 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 20:45 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 21:45 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets index d49d7dd9fe..0e226c7da4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets @@ -21,8 +21,8 @@ class A{ x : int } -/* @@? 20:12 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:12 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:12 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:28 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 20:31 Error SyntaxError: Unexpected token ')'. */ +/* @@? 20:12 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:12 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:28 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 20:31 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets index 96304af440..3d90681a47 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets @@ -25,44 +25,44 @@ function foo(MyAnno({testProperty1: ""}) x: int, MyAnno({testProperty1: ""}) y: function foo(MyAnno({testProperty1: ""}) x: int, MyAnno({testProperty1: ""}) y: string) { } -/* @@? 19:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:20 Error TypeError: need to specify target type for class composite */ -/* @@? 19:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 19:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 19:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 19:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:50 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:1 Error TypeError: Function foo is already declared. */ -/* @@? 22:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 22:20 Error TypeError: need to specify target type for class composite */ -/* @@? 22:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 22:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 22:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:50 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 22:50 Error TypeError: This expression is not callable. */ -/* @@? 22:50 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 22:78 Error SyntaxError: Unexpected token 'y'. */ -/* @@? 22:81 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:81 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 22:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:89 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:1 Error TypeError: Function foo is already declared. */ -/* @@? 25:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 25:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 25:20 Error TypeError: need to specify target type for class composite */ -/* @@? 25:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 25:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 25:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 25:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 25:50 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 25:50 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 25:50 Error TypeError: This expression is not callable. */ -/* @@? 25:78 Error SyntaxError: Unexpected token 'y'. */ -/* @@? 25:81 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 25:81 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 25:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:89 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file +/* @@? 19:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 19:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 19:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 19:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 19:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 19:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:50 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:1 Error Semantic error ESE0130: Function foo is already declared. */ +/* @@? 22:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 22:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 22:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 22:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 22:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 22:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:50 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 22:50 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 22:50 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 22:78 Error Syntax error ESY0227: Unexpected token 'y'. */ +/* @@? 22:81 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:81 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 22:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:89 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:1 Error Semantic error ESE0130: Function foo is already declared. */ +/* @@? 25:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 25:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 25:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 25:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 25:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 25:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 25:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 25:50 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 25:50 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 25:50 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 25:78 Error Syntax error ESY0227: Unexpected token 'y'. */ +/* @@? 25:81 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 25:81 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 25:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 25:89 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets index a1c6ed41b6..6c390ea1e1 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets @@ -20,4 +20,4 @@ @MyAnno({testProperty1: "123", testProperty2/* @@ label */}) class A{} -/* @@@ label Error SyntaxError: Invalid argument passed to 'testProperty2'. */ +/* @@@ label Error Syntax error ESY0026: Invalid argument passed to 'testProperty2'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets index fabbeb1021..38af677949 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets @@ -25,4 +25,4 @@ testProperty2: number } -/* @@? 22:2 Error TypeError: Only standard annotations are allowed to be applied on annotations. */ +/* @@? 22:2 Error Semantic error ESE0006: Only standard annotations are allowed to be applied on annotations. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets index f7664657d2..06534fe58d 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets @@ -19,8 +19,8 @@ @MyAnno("123"/* @@ label */, "1"/* @@ label1 */) class A{} -/* @@@ label Error SyntaxError: Expected ')', got ','. */ -/* @@@ label Error SyntaxError: Unexpected token ','. */ -/* @@@ label Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 19:30 Error SyntaxError: Unexpected token '1'. */ -/* @@@ label1 Error SyntaxError: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got ','. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 19:30 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets index 4fc4472c2e..cdcfc2c700 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets @@ -20,5 +20,5 @@ @MyAnno({testProperty1: "123"/* @@ label */; /* @@ label1 */testProperty2: 123}) class A{} -/* @@? 20:44 Error SyntaxError: Expected ',', got ';'. */ -/* @@? 20:44 Error SyntaxError: Identifier expected, got ';'. */ +/* @@@ label Error Syntax error ESY0230: Expected ',', got ';'. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ';'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets index 6ed09ff532..209171d51e 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets @@ -20,7 +20,7 @@ @MyAnno({testProperty1: "123", testProperty2: 123/* @@ label */;/* @@ label1 */}) class A{} -/* @@? 20:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 20:64 Error SyntaxError: Expected ',', got ';'. */ -/* @@? 20:64 Error SyntaxError: Identifier expected, got ';'. */ -/* @@? 20:80 Error SyntaxError: Identifier expected, got '}'. */ +/* @@? 20:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Syntax error ESY0230: Expected ',', got ';'. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ';'. */ +/* @@@ label1 Error Syntax error ESY0224: Identifier expected, got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets index 44730b44be..7933f17712 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets @@ -18,7 +18,7 @@ const invalidUsage1 = @Log("value")) ()=>{} -/* @@? 19:24 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 19:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token. */ +/* @@? 19:24 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 19:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:40 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:40 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets index 8fefd09985..9074143a0c 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets @@ -18,7 +18,7 @@ const invalidUsage1 = @@Log("value") ()=>{} -/* @@? 19:23 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 19:25 Error SyntaxError: Unexpected token 'Log'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token. */ +/* @@? 19:23 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 19:25 Error Syntax error ESY0227: Unexpected token 'Log'. */ +/* @@? 19:40 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:40 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets index 7173d03c9b..03a0ec36fb 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets @@ -22,6 +22,6 @@ class A{} @MyAnno(/* @@ label */new A()) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets index c3dd9704f6..b3853d2388 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets @@ -15,4 +15,4 @@ export default @/* @@ label */interface MyAnno {} -/* @@@ label Error SyntaxError: Can not export annotation default. */ +/* @@@ label Error Syntax error ESY0042: Can not export annotation default. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets index 7daa6f364a..a01d9daf13 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets @@ -17,4 +17,4 @@ export {MyAnno as /* @@ label */NA} @interface MyAnno{} -/* @@@ label Error SyntaxError: Can not rename annotation 'MyAnno' in export or import statements. */ +/* @@@ label Error Syntax error ESY0280: Can not rename annotation 'MyAnno' in export or import statements. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets index 06ee35b51d..e15f55d267 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets @@ -15,4 +15,4 @@ import {MyAnno as NA} from /* @@ label */"./annotation_export" -/* @@@ label Error TypeError: Can not rename annotation 'MyAnno' in export or import statements. */ +/* @@@ label Error Semantic error ESE0357: Can not rename annotation 'MyAnno' in export or import statements. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets index 6aa297c618..52d6058ec7 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets @@ -18,4 +18,4 @@ function foo() {} @/* @@ label */foo @interface anno {} -/* @@@ label Error TypeError: Cannot find type 'foo'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0371: Cannot find type 'foo'. */ diff --git a/ets2panda/test/ast/parser/ets/anonymous_class.ets b/ets2panda/test/ast/parser/ets/anonymous_class.ets index f277596205..48610206da 100644 --- a/ets2panda/test/ast/parser/ets/anonymous_class.ets +++ b/ets2panda/test/ast/parser/ets/anonymous_class.ets @@ -20,5 +20,5 @@ class A { }; } -/* @@? 17:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/array_2.ets b/ets2panda/test/ast/parser/ets/array_2.ets index f949a62c20..4c54fdd634 100644 --- a/ets2panda/test/ast/parser/ets/array_2.ets +++ b/ets2panda/test/ast/parser/ets/array_2.ets @@ -15,7 +15,7 @@ let c: Double[] = [0.33 /* @@ label */0.66 0.99] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label Error SyntaxError: Unexpected token '0.66'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token '0.99'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '0.66'. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token '0.99'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/array_literal_inference.ets b/ets2panda/test/ast/parser/ets/array_literal_inference.ets index 9ab410b887..36f40f0fd2 100644 --- a/ets2panda/test/ast/parser/ets/array_literal_inference.ets +++ b/ets2panda/test/ast/parser/ets/array_literal_inference.ets @@ -17,4 +17,4 @@ function foo(): void { let b: [] = /* @@ label */[ 1 ] } -/* @@@ label Error TypeError: Initializer has 1 elements, but tuple requires 0 */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 0 */ diff --git a/ets2panda/test/ast/parser/ets/array_missing_element.ets b/ets2panda/test/ast/parser/ets/array_missing_element.ets index 0c7d520831..7ad07da7e2 100644 --- a/ets2panda/test/ast/parser/ets/array_missing_element.ets +++ b/ets2panda/test/ast/parser/ets/array_missing_element.ets @@ -17,8 +17,8 @@ function foo(): void { let b: (number|undefined)[] = [ 1, 2, 3, , 4, ] } -/* @@? 17:45 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:47 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:47 Error SyntaxError: Unexpected token '4'. */ -/* @@? 17:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:50 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:45 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:47 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:47 Error Syntax error ESY0227: Unexpected token '4'. */ +/* @@? 17:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:50 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/array_new_failed.ets b/ets2panda/test/ast/parser/ets/array_new_failed.ets index d851e069fe..edf85b1b21 100644 --- a/ets2panda/test/ast/parser/ets/array_new_failed.ets +++ b/ets2panda/test/ast/parser/ets/array_new_failed.ets @@ -17,4 +17,4 @@ function foo(): void { let a = new int[/* @@ label */5.1] } -/* @@@ label Error TypeError: Index fractional part should be zero. */ +/* @@@ label Error Semantic error ESE0197: Index fractional part should be zero. */ diff --git a/ets2panda/test/ast/parser/ets/array_type.ets b/ets2panda/test/ast/parser/ets/array_type.ets index 44f57bdbc2..788ad3f16c 100644 --- a/ets2panda/test/ast/parser/ets/array_type.ets +++ b/ets2panda/test/ast/parser/ets/array_type.ets @@ -24,7 +24,7 @@ class array_type { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'f' might not have been initialized. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'f' might not have been initialized. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets b/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets index 760389c8da..05c02b516d 100644 --- a/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets +++ b/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets @@ -21,4 +21,4 @@ class cls { } } -/* @@@ label Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@@ label Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ diff --git a/ets2panda/test/ast/parser/ets/arrow_1.ets b/ets2panda/test/ast/parser/ets/arrow_1.ets index dfb34413aa..4feddfd1b4 100644 --- a/ets2panda/test/ast/parser/ets/arrow_1.ets +++ b/ets2panda/test/ast/parser/ets/arrow_1.ets @@ -27,4 +27,4 @@ let a: A = { } } -/* @@? 22:12 Error SyntaxError: Expected '=>', got ','. */ +/* @@? 22:12 Error Syntax error ESY0230: Expected '=>', got ','. */ diff --git a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets index 83c44d1cf3..870bb192b4 100644 --- a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets +++ b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets @@ -17,5 +17,5 @@ function main(): void { /* @@ label1 */arktest.assertTrue(/* @@ label2 */"true") } -/* @@@ label1 Error TypeError: No matching call signature for assertTrue("true") */ -/* @@@ label2 Error TypeError: Type '"true"' is not compatible with type 'Boolean' at index 1 */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertTrue("true") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"true"' is not compatible with type 'Boolean' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets index 30a3f6b53d..4105654601 100644 --- a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets +++ b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets @@ -17,5 +17,5 @@ function main(): void { /* @@ label1 */arktest.assertTrue(/* @@ label2 */1) } -/* @@@ label1 Error TypeError: No matching call signature for assertTrue(Int) */ -/* @@@ label2 Error TypeError: Type 'Int' is not compatible with type 'Boolean' at index 1 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertTrue(Int) */ +/* @@@ label2 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'Boolean' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/assign-func-iface.ets b/ets2panda/test/ast/parser/ets/assign-func-iface.ets index b79b795449..26f7a4d29c 100644 --- a/ets2panda/test/ast/parser/ets/assign-func-iface.ets +++ b/ets2panda/test/ast/parser/ets/assign-func-iface.ets @@ -17,5 +17,5 @@ interface Foo { /* @@ label */async foo/* @@ label1 */(): Promise; } -/* @@@ label Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label1 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/assign_bad.ets b/ets2panda/test/ast/parser/ets/assign_bad.ets index 11de990c99..4a387ee80a 100644 --- a/ets2panda/test/ast/parser/ets/assign_bad.ets +++ b/ets2panda/test/ast/parser/ets/assign_bad.ets @@ -20,9 +20,9 @@ function main(): void { a := b; } -/* @@? 16:1 Error TypeError: Unresolved reference dim */ -/* @@? 16:5 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 16:5 Error TypeError: Unresolved reference a */ -/* @@? 20:6 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 20:6 Error SyntaxError: Unexpected token '='. */ -/* @@? 20:8 Error SyntaxError: Unexpected token 'b'. */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference dim */ +/* @@? 16:5 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:6 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 20:6 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 20:8 Error Syntax error ESY0227: Unexpected token 'b'. */ diff --git a/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets b/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets index 5886f5d01a..a81e44373e 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 2d9c1d6732..de3e3e1bb1 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 3f1ff3d168..98d28a4d18 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 367d9d3f2b..48fb3fb42b 100644 --- a/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets +++ b/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets @@ -15,7 +15,7 @@ import { * } from './module'; -/* @@? 16:10 Error SyntaxError: The '*' token is not allowed as a selective binding (between braces). */ -/* @@? 16:10 Error SyntaxError: Unexpected token '*'. */ -/* @@? 16:14 Error TypeError: Unresolved reference from */ -/* @@? 16:19 Error SyntaxError: Unexpected token './module'. */ +/* @@? 16:10 Error Syntax error ESY0102: The '*' token is not allowed as a selective binding (between braces). */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 16:14 Error Semantic error ESE0143: Unresolved reference from */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token './module'. */ diff --git a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets index e36a906942..18db2cb754 100644 --- a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets @@ -17,4 +17,4 @@ abstract class Foo { abstract async /* @@ label */foo(): Promise; } -/* @@@ label Error SyntaxError: Abstract method cannot be async. */ +/* @@@ label Error Syntax error ESY0118: Abstract method cannot be async. */ diff --git a/ets2panda/test/ast/parser/ets/async_ctor.ets b/ets2panda/test/ast/parser/ets/async_ctor.ets index 1ddb4cc81d..479d866522 100644 --- a/ets2panda/test/ast/parser/ets/async_ctor.ets +++ b/ets2panda/test/ast/parser/ets/async_ctor.ets @@ -17,4 +17,4 @@ class Test { async /* @@ label */constructor() {} } -/* @@@ label Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@@ label Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets b/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets index 9533580615..0c094a7043 100644 --- a/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets @@ -17,4 +17,4 @@ async function foo(): Promise { return /* @@ label */"abc"; } -/* @@@ label Error TypeError: Type '"abc"' is not compatible with the enclosing method's return type 'Promise | Int' */ +/* @@@ label Error Semantic error ESE0091: Type '"abc"' is not compatible with the enclosing method's return type 'Promise | Int' */ diff --git a/ets2panda/test/ast/parser/ets/async_function_bad.ets b/ets2panda/test/ast/parser/ets/async_function_bad.ets index d7c4a852b2..8f1bc5bda4 100644 --- a/ets2panda/test/ast/parser/ets/async_function_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_function_bad.ets @@ -15,13 +15,13 @@ async native function foo(): Promise; -/* @@? 16:7 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:28 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:30 Error SyntaxError: Unexpected token 'Promise'. */ -/* @@? 16:30 Error SyntaxError: Class cannot be used as object. */ +/* @@? 16:7 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 16:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:14 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:28 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:30 Error Syntax error ESY0227: Unexpected token 'Promise'. */ +/* @@? 16:30 Error Syntax error ESY0318: Class cannot be used as object. */ diff --git a/ets2panda/test/ast/parser/ets/async_lambda_bad.ets b/ets2panda/test/ast/parser/ets/async_lambda_bad.ets index 702a26d0ce..a94335ef44 100644 --- a/ets2panda/test/ast/parser/ets/async_lambda_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_lambda_bad.ets @@ -15,4 +15,4 @@ let lambda: () => int = async /* @@ label */(): int => { return 1; } -/* @@@ label Error TypeError: Return type of async lambda must be 'Promise' */ +/* @@@ label Error Semantic error ESE0023: Return type of async lambda must be 'Promise' */ diff --git a/ets2panda/test/ast/parser/ets/async_method_bad.ets b/ets2panda/test/ast/parser/ets/async_method_bad.ets index 3e84247af8..e991569e09 100644 --- a/ets2panda/test/ast/parser/ets/async_method_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_method_bad.ets @@ -17,6 +17,6 @@ class Test { public async native /* @@ label */bar(): Promise; } -/* @@@ label Error SyntaxError: Native method cannot be async. */ -/* @@? 17:46 Error TypeError: Type 'Promise' is generic but type argument were not provided. */ -/* @@? 17:42 Error TypeError: Return type of async function must be 'Promise'. */ +/* @@@ label Error Syntax error ESY0116: Native method cannot be async. */ +/* @@? 17:42 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 17:46 Error Semantic error ESE0170: Type 'Promise' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/await_argument_null.ets b/ets2panda/test/ast/parser/ets/await_argument_null.ets index 9b7a14c21a..033a6e5b30 100644 --- a/ets2panda/test/ast/parser/ets/await_argument_null.ets +++ b/ets2panda/test/ast/parser/ets/await_argument_null.ets @@ -18,5 +18,5 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ +/* @@@ label Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ diff --git a/ets2panda/test/ast/parser/ets/await_object_bad.ets b/ets2panda/test/ast/parser/ets/await_object_bad.ets index 0b3bf805be..648f657cdf 100644 --- a/ets2panda/test/ast/parser/ets/await_object_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_object_bad.ets @@ -18,5 +18,5 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ +/* @@@ label Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ diff --git a/ets2panda/test/ast/parser/ets/await_promise_bad.ets b/ets2panda/test/ast/parser/ets/await_promise_bad.ets index d0ee72abbd..70a86c56b3 100644 --- a/ets2panda/test/ast/parser/ets/await_promise_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_promise_bad.ets @@ -18,5 +18,5 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ +/* @@@ label Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ diff --git a/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets b/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets index fca951695d..ad645c528f 100644 --- a/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets +++ b/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets @@ -27,5 +27,5 @@ function main() /* @@ label */b(1, 2) } -/* @@@ label Error TypeError: No static $_invoke method and static $_instantiate method in b. b() is not allowed. */ -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ +/* @@@ label Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in b. b() is not allowed. */ +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ diff --git a/ets2panda/test/ast/parser/ets/calls.ets b/ets2panda/test/ast/parser/ets/calls.ets index 13ed2d7b93..d48b6f75a4 100644 --- a/ets2panda/test/ast/parser/ets/calls.ets +++ b/ets2panda/test/ast/parser/ets/calls.ets @@ -26,4 +26,4 @@ function main(): void { foo(11); } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions10.ets b/ets2panda/test/ast/parser/ets/cast_expressions10.ets index 8ac8ebd670..43de9eff07 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions10.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions10.ets @@ -25,6 +25,6 @@ function main(): void { let Long_a: Long[][] = Int_a as Long[][]; } -/* @@? 19:30 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ -/* @@? 20:25 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ -/* @@? 25:26 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file +/* @@? 19:30 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ +/* @@? 20:25 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ +/* @@? 25:26 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions2.ets b/ets2panda/test/ast/parser/ets/cast_expressions2.ets index c624f52ae7..446b81f08e 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions2.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions2.ets @@ -20,4 +20,4 @@ function narrowing_reference_test(): void { let A_ = new A(); let B_ = /* @@ label */A_ as B; } -/* @@@ label Error TypeError: Cannot cast type 'A' to 'B' */ +/* @@@ label Error Semantic error ESE0326: Cannot cast type 'A' to 'B' */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions7.ets b/ets2panda/test/ast/parser/ets/cast_expressions7.ets index 7247dfdf88..19000b7fcb 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions7.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions7.ets @@ -27,6 +27,6 @@ function main(): void { let long_a: long[] = int_a as long[]; } -/* @@? 21:16 Error TypeError: Cannot cast type 'Array' to 'Array' */ -/* @@? 22:17 Error TypeError: Cannot cast type 'Array' to 'Array' */ -/* @@? 27:24 Error TypeError: Cannot cast type 'Array' to 'Array' */ \ No newline at end of file +/* @@? 21:16 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ +/* @@? 22:17 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ +/* @@? 27:24 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions9.ets b/ets2panda/test/ast/parser/ets/cast_expressions9.ets index 02e25d9248..fe00a1a6d7 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions9.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions9.ets @@ -19,4 +19,4 @@ function main(): void { let long_a: long[][] = int_a as long[][]; } -/* @@? 19:26 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file +/* @@? 19:26 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ diff --git a/ets2panda/test/ast/parser/ets/circular_class_extends.ets b/ets2panda/test/ast/parser/ets/circular_class_extends.ets index 4cac2e3719..2aa16dbe0e 100644 --- a/ets2panda/test/ast/parser/ets/circular_class_extends.ets +++ b/ets2panda/test/ast/parser/ets/circular_class_extends.ets @@ -24,4 +24,4 @@ export { m }; // If you want to re-export the class from the namespace: export class c extends m.c {} -/* @@? 25:28 Error TypeError: Class's super type is itself */ +/* @@? 25:28 Error Semantic error ESE0380: Class's super type is itself */ diff --git a/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets b/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets index d128f8bcce..4de063d3ff 100644 --- a/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets +++ b/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets @@ -26,8 +26,8 @@ class Test { baz(a: Test, k: keyof Test) {} } -/* @@? 20:9 Error TypeError: No matching call signature for baz(Test, "*1*") */ -/* @@? 20:24 Error TypeError: Type '"*1*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ -/* @@? 23:9 Error TypeError: No matching call signature for baz(Test, "*2*") */ -/* @@? 23:21 Error TypeError: Type '"*2*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ -/* @@? 26:31 Error TypeError: Circular type of reference */ +/* @@? 20:9 Error Semantic error ESE0127: No matching call signature for baz(Test, "*1*") */ +/* @@? 20:24 Error Semantic error ESE0046: Type '"*1*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ +/* @@? 23:9 Error Semantic error ESE0127: No matching call signature for baz(Test, "*2*") */ +/* @@? 23:21 Error Semantic error ESE0046: Type '"*2*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ +/* @@? 26:31 Error Semantic error ESE0379: Circular type of reference */ diff --git a/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets b/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets index 09a0912afd..d664f95c6a 100644 --- a/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets +++ b/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets @@ -17,20 +17,20 @@ type Loop> = { [P in keyof T]: U[P] extends boolean ? number : string; }; -/* @@? 16:24 Error TypeError: Circular type alias reference */ -/* @@? 16:38 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 17:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:16 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:19 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:23 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 17:24 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 17:34 Error SyntaxError: boolean is a predefined type, cannot be used as an identifier */ -/* @@? 17:42 Error SyntaxError: Unexpected token '?'. */ -/* @@? 17:44 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:51 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:53 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ +/* @@? 16:24 Error Semantic error ESE0311: Circular type alias reference */ +/* @@? 16:38 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 17:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:16 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:18 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:23 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 17:34 Error Syntax error ESY0295: boolean is a predefined type, cannot be used as an identifier */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 17:44 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:51 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:53 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets index f3b7579fd5..4ba9ad7f56 100644 --- a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets +++ b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets @@ -21,4 +21,4 @@ interface C extends B {} interface D extends C {} -/* @@? 16:11 Error TypeError: Cyclic inheritance involving A. */ +/* @@? 16:11 Error Semantic error ESE0310: Cyclic inheritance involving A. */ diff --git a/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets b/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets index 5724caccac..5fc7bcc069 100644 --- a/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets +++ b/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets @@ -18,4 +18,4 @@ class C { /* @@ label */foo: int = 20; } -/* @@@ label Error TypeError: Variable 'foo' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets b/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets index 7951f410c9..1ab57edc32 100644 --- a/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets +++ b/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets @@ -18,4 +18,4 @@ class C { static /* @@ label */foo: int = 20; } -/* @@@ label Error TypeError: Variable 'foo' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets index d7118829e0..3577f98e7c 100644 --- a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets +++ b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets @@ -23,6 +23,6 @@ function main(): void { alma(C); } -/* @@? 23:10 Error TypeError: Class or interface 'C' cannot be used as object */ -/* @@? 23:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 23:5 Error TypeError: No matching call signature for alma(C) */ +/* @@? 23:5 Error Semantic error ESE0127: No matching call signature for alma(C) */ +/* @@? 23:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 23:10 Error Semantic error ESE0294: Class or interface 'C' cannot be used as object */ diff --git a/ets2panda/test/ast/parser/ets/class_as_object_1.ets b/ets2panda/test/ast/parser/ets/class_as_object_1.ets index e9d0cfa6ea..9fcc8ec8d2 100644 --- a/ets2panda/test/ast/parser/ets/class_as_object_1.ets +++ b/ets2panda/test/ast/parser/ets/class_as_object_1.ets @@ -15,5 +15,6 @@ console.log(Object) -/* @@? 16:13 Error TypeError: Class or interface 'Object' cannot be used as object */ -/* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ +/* @@? 16:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 16:13 Error Semantic error ESE0294: Class or interface 'Object' cannot be used as object */ +/* @@? 16:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ diff --git a/ets2panda/test/ast/parser/ets/class_composite_1.ets b/ets2panda/test/ast/parser/ets/class_composite_1.ets index c3a6a4f585..73213ee103 100644 --- a/ets2panda/test/ast/parser/ets/class_composite_1.ets +++ b/ets2panda/test/ast/parser/ets/class_composite_1.ets @@ -17,5 +17,5 @@ function main() : void { let x : boolean = {y: false}.y } -/* @@? 17:9 Error TypeError: Class composite must be constructed separately before referring their members. */ -/* @@? 17:23 Error TypeError: need to specify target type for class composite */ +/* @@? 17:9 Error Semantic error ESE0151: Class composite must be constructed separately before referring their members. */ +/* @@? 17:23 Error Semantic error ESE0062: need to specify target type for class composite */ diff --git a/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets b/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets index dcf98bfb30..566b952536 100644 --- a/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets +++ b/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets @@ -19,4 +19,4 @@ let obj: A = { x: 123 }; -/* @@? 18:14 Error TypeError: Target type for class composite needs to be an object type, found 'Double|Boolean' */ +/* @@? 18:14 Error Semantic error ESE0063: Target type for class composite needs to be an object type, found 'Double|Boolean' */ diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets index 58848afbb6..401f070089 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets index f0052c09b0..ea8180d7d4 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets index 837f0da4f0..90920bbbdf 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets @@ -17,4 +17,4 @@ class A { /* @@ label */enum Color { Red, Green, Blue } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_keyword.ets b/ets2panda/test/ast/parser/ets/class_keyword.ets index f34d001a8c..e2a3b07ec6 100644 --- a/ets2panda/test/ast/parser/ets/class_keyword.ets +++ b/ets2panda/test/ast/parser/ets/class_keyword.ets @@ -17,9 +17,9 @@ final /* @@ label */kngkgj class /* @@ label1 */B /* @@ label2 */{ } -/* @@@ label Error SyntaxError: Unexpected token 'kngkgj'. */ -/* @@? 16:21 Error TypeError: Cannot find type 'kngkgj'. */ -/* @@? 16:21 Error TypeError: Class literal is not yet supported. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'B'. */ -/* @@? 16:49 Error TypeError: Unresolved reference B */ -/* @@@ label2 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'kngkgj'. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'kngkgj'. */ +/* @@@ label Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'B'. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference B */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets index f6d963475f..88816f558a 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets @@ -18,7 +18,7 @@ class A { f2!?:number } -/* @@? 17:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 17:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets index 7f42ec5dc7..de340286c0 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets @@ -16,4 +16,4 @@ class A { f!: string = "abc" } -/* @@? 17:6 Error SyntaxError: Late-initialized field cannot have default value. */ +/* @@? 17:6 Error Syntax error ESY0304: Late-initialized field cannot have default value. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets index 14556b9e58..4a7720e259 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets @@ -17,7 +17,7 @@ interface A { f!: string = "abc" } -/* @@? 17:16 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:16 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets index 5e773322d4..38b7579e08 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets @@ -18,5 +18,5 @@ class B { f!: A = undefined; }; -/* @@? 18:6 Error SyntaxError: Late-initialized field cannot have default value. */ -/* @@? 18:9 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:6 Error Syntax error ESY0304: Late-initialized field cannot have default value. */ +/* @@? 18:9 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets index fc9d3639e5..65a640bc43 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets @@ -20,7 +20,7 @@ class A { f4!: number | null } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 19:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 20:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 19:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 20:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets index 080bad8136..c2094e7021 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets @@ -25,8 +25,8 @@ class B { f3!: T | null // cte } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 19:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 24:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 25:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 19:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 24:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 25:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets index 59ae593755..2bb5f28a57 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets @@ -33,5 +33,5 @@ class E extends A{ f1!: T // cte } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 33:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 33:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets index 876ca3f3af..37daceb5ce 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets @@ -34,4 +34,4 @@ class E implements A{ } -/* @@? 33:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 33:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_optional_property.ets b/ets2panda/test/ast/parser/ets/class_optional_property.ets index a0c0ea2857..3ac70e808d 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 a233467157..37be58c9ce 100644 --- a/ets2panda/test/ast/parser/ets/class_property_access.ets +++ b/ets2panda/test/ast/parser/ets/class_property_access.ets @@ -25,4 +25,4 @@ class outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets b/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets index 2dd6dec533..3febbd62d9 100644 --- a/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets +++ b/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets @@ -17,4 +17,4 @@ class A{ static f!:string } -/* @@? 17:13 Error SyntaxError: Late-initialized field cannot be defined as static. */ +/* @@? 17:13 Error Syntax error ESY0303: Late-initialized field cannot be defined as static. */ diff --git a/ets2panda/test/ast/parser/ets/class_variable_empty.ets b/ets2panda/test/ast/parser/ets/class_variable_empty.ets index cb91389b8d..b3a82dd8b8 100644 --- a/ets2panda/test/ast/parser/ets/class_variable_empty.ets +++ b/ets2panda/test/ast/parser/ets/class_variable_empty.ets @@ -21,7 +21,7 @@ function main(): void { } arktest.assertTrue(a != null) } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ -/* @@? 22:22 Error TypeError: Unresolved reference a */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/comma_only_in_for.ets b/ets2panda/test/ast/parser/ets/comma_only_in_for.ets index 049e5d2b56..6167219db9 100644 --- a/ets2panda/test/ast/parser/ets/comma_only_in_for.ets +++ b/ets2panda/test/ast/parser/ets/comma_only_in_for.ets @@ -16,4 +16,4 @@ let x = 0 x = (++x/* @@ label */, x++) -/* @@@ label Error SyntaxError: Comma operator is supported only in 'for' loops. */ +/* @@@ label Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ diff --git a/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets b/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets index 4b39ce7534..e7e44669ec 100644 --- a/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets +++ b/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets @@ -16,4 +16,4 @@ let x = 10 let y = (x++/* @@ label */, 2, 44, x+10) -/* @@@ label Error SyntaxError: Comma operator is supported only in 'for' loops. */ +/* @@@ label Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ diff --git a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets index 9b252bca18..f652cf45a8 100644 --- a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets +++ b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets @@ -31,5 +31,5 @@ function main(): void { } } -/* @@@ label1 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int' */ -/* @@? 25:33 Error TypeError: Switch case type 'double' is not comparable to discriminant type 'int' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ +/* @@? 25:33 Error Semantic error ESE0262: Switch case type 'double' is not comparable to discriminant type 'int' */ diff --git a/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets b/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets index 56d7728f42..efb7e7164b 100644 --- a/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets +++ b/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets @@ -25,5 +25,5 @@ enum Color { } -/* @@? 20:14 Error SyntaxError: Division by zero is not allowed. */ -/* @@? 24:11 Error SyntaxError: Division by zero is not allowed. */ +/* @@? 20:14 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@? 24:11 Error Syntax error ESY0273: Division by zero is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets index b5087a482b..e38955d9b0 100644 --- a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets +++ b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets @@ -18,4 +18,4 @@ class Person { } type PersonCtor = new (name: string, age: number) => Person -/* @@? 19:1 Error SyntaxError: Constructor function types are not supported. */ +/* @@? 19:1 Error Syntax error ESY93489: Constructor function types are not supported. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_default_super.ets b/ets2panda/test/ast/parser/ets/constructor_default_super.ets index cc891353b4..494d03daa1 100644 --- a/ets2panda/test/ast/parser/ets/constructor_default_super.ets +++ b/ets2panda/test/ast/parser/ets/constructor_default_super.ets @@ -20,4 +20,4 @@ class Base { class Derived extends Base { } // Discussion about change that phrase #23218 -/* @@? 20:29 Error TypeError: Must call super constructor */ +/* @@? 20:29 Error Semantic error ESE0192: Must call super constructor */ diff --git a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets index 394fe76b37..943ef167c9 100644 --- a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets +++ b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets @@ -17,4 +17,4 @@ class A { constructor() } -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets index d97df6e49e..f23e3e12db 100644 --- a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets +++ b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Must call super constructor */ +/* @@@ label Error Semantic error ESE0192: Must call super constructor */ diff --git a/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets b/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets index d31d7c3e7a..dc93ddc95e 100644 --- a/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets +++ b/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets @@ -20,8 +20,7 @@ class C { } let c = new C(10, 'foo'); -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 19:3 Error TypeError: No matching call signature for constructor */ -/* @@? 19:19 Error TypeError: Cannot find type 'any'. */ -/* @@? 19:28 Error TypeError: Cannot find type 'any'. */ - +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 19:3 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 19:19 Error Semantic error ESE0371: Cannot find type 'any'. */ +/* @@? 19:28 Error Semantic error ESE0371: Cannot find type 'any'. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets b/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets index c394db0309..243808f0d2 100644 --- a/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets +++ b/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: Return statement with expression isn't allowed in constructor. */ +/* @@@ label Error Semantic error ESE0033: Return statement with expression isn't allowed in constructor. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets b/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets index c0275b2ad5..1fdb45fb47 100644 --- a/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets +++ b/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error SyntaxError: Type annotation isn't allowed for constructor. */ +/* @@@ label Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ diff --git a/ets2panda/test/ast/parser/ets/constructors.ets b/ets2panda/test/ast/parser/ets/constructors.ets index 7a9155c470..cbb135822a 100644 --- a/ets2panda/test/ast/parser/ets/constructors.ets +++ b/ets2panda/test/ast/parser/ets/constructors.ets @@ -34,4 +34,4 @@ class I1 extends /* @@ label */I { } } -/* @@@ label Error TypeError: Cannot inherit with 'final' modifier. */ +/* @@@ label Error Semantic error ESE0178: Cannot inherit with 'final' modifier. */ diff --git a/ets2panda/test/ast/parser/ets/cycle_constructor.ets b/ets2panda/test/ast/parser/ets/cycle_constructor.ets index 39de52dd45..26a13e3ef3 100644 --- a/ets2panda/test/ast/parser/ets/cycle_constructor.ets +++ b/ets2panda/test/ast/parser/ets/cycle_constructor.ets @@ -29,7 +29,7 @@ class B extends A { } } -/* @@? 28:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 28:9 Error TypeError: No matching call signature for cycle_constructor.B(Int) */ -/* @@? 28:9 Error TypeError: No matching call signature for constructor */ -/* @@? 28:14 Error TypeError: Using super is not allowed in constructor */ \ No newline at end of file +/* @@? 28:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 28:9 Error Semantic error ESE0127: No matching call signature for cycle_constructor.B(Int) */ +/* @@? 28:9 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 28:14 Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/decl_in_param.ets b/ets2panda/test/ast/parser/ets/decl_in_param.ets index 39e7ac9b8f..9490d35972 100644 --- a/ets2panda/test/ast/parser/ets/decl_in_param.ets +++ b/ets2panda/test/ast/parser/ets/decl_in_param.ets @@ -19,6 +19,6 @@ class C{ constructor(public m:number) {} m(public x:number) {} } -/* @@? 16:12 Error SyntaxError: Declaring fields in parameter list is not supported */ -/* @@? 19:17 Error SyntaxError: Declaring fields in parameter list is not supported */ -/* @@? 20:7 Error SyntaxError: Declaring fields in parameter list is not supported */ +/* @@? 16:12 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ +/* @@? 19:17 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ +/* @@? 20:7 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ diff --git a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets index f7284c2aee..126f79154c 100644 --- a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets +++ b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets @@ -17,4 +17,4 @@ declare namespace A{ declare function foo(): void } -/* @@? 17:5 Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@? 17:5 Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ets/declare_annotation.ets b/ets2panda/test/ast/parser/ets/declare_annotation.ets index ba73fcc9ba..0470cdfd33 100644 --- a/ets2panda/test/ast/parser/ets/declare_annotation.ets +++ b/ets2panda/test/ast/parser/ets/declare_annotation.ets @@ -27,12 +27,12 @@ class A{ @ClassAuthor({authorName: "22"}) foo3() -/* @@? 17:7 Error SyntaxError: Missing type annotation for property 'au'. */ -/* @@? 17:7 Error SyntaxError: Identifier expected, got '`'. */ -/* @@? 21:6 Error TypeError: The required field 'au' must be specified. Fields without default values cannot be omitted. */ -/* @@? 24:6 Error TypeError: Annotation 'ClassAuthor' requires multiple fields to be specified. */ -/* @@? 24:18 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 27:6 Error TypeError: The required field 'au' must be specified. Fields without default values cannot be omitted. */ -/* @@? 27:19 Error TypeError: The parameter 'authorName' does not match any declared property in the annotation 'ClassAuthor'. */ -/* @@? 28:9 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 39:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 17:7 Error Syntax error ESY0001: Missing type annotation for property 'au'. */ +/* @@? 17:7 Error Syntax error ESY0224: Identifier expected, got '`'. */ +/* @@? 21:6 Error Semantic error ESE0044: The required field 'au' must be specified. Fields without default values cannot be omitted. */ +/* @@? 24:6 Error Semantic error ESE0043: Annotation 'ClassAuthor' requires multiple fields to be specified. */ +/* @@? 24:18 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 27:6 Error Semantic error ESE0044: The required field 'au' must be specified. Fields without default values cannot be omitted. */ +/* @@? 27:19 Error Semantic error ESE0045: The parameter 'authorName' does not match any declared property in the annotation 'ClassAuthor'. */ +/* @@? 28:9 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 39:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets index 29c95eb7e7..19b18119d5 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets @@ -18,6 +18,6 @@ declare class A { /* @@ label */foo(p: string): double; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 17:18 Error TypeError: Initializers are not allowed in ambient contexts: f1 */ -/* @@? 17:18 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 17:18 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: f1 */ +/* @@? 17:18 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets index 43605d1ef9..d9bb1e190a 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets @@ -18,4 +18,4 @@ declare class A { foo(p: string): void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets index d826e1d205..e58a24fbf7 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets @@ -18,6 +18,6 @@ declare class A { /* @@ label */static foo(p: string): double; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 17:25 Error TypeError: Initializers are not allowed in ambient contexts: f1 */ -/* @@? 17:25 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 17:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: f1 */ +/* @@? 17:25 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets index 6169ced07b..1917ab8270 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets @@ -18,4 +18,4 @@ declare class A { static foo(p: string): void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets index 00ddb7fdf7..3b9c3857ee 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets @@ -50,15 +50,15 @@ declare class E { internal [index: number]: number } -/* @@? 17:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 18:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 19:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 20:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 21:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 22:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 23:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 24:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 38:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 42:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 46:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 50:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 18:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 19:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 20:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 21:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 22:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 23:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 24:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 38:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 42:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 46:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 50:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_neg.ets b/ets2panda/test/ast/parser/ets/declare_class_neg.ets index 9426627656..ed2c0eda3d 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_neg.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_neg.ets @@ -19,6 +19,6 @@ declare class A { class B { declare/* @@ label1 */ constructor() } -/* @@? 17:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:37 Error TypeError: Only abstract or native methods can't have body. */ +/* @@? 17:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:37 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_func_bad.ets b/ets2panda/test/ast/parser/ets/declare_func_bad.ets index e237b1dc8b..6448cc3ca8 100644 --- a/ets2panda/test/ast/parser/ets/declare_func_bad.ets +++ b/ets2panda/test/ast/parser/ets/declare_func_bad.ets @@ -15,4 +15,4 @@ declare function foo(p: string): void /* @@ label */{} -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets index 0b586d7daf..2b9367dea1 100644 --- a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets +++ b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets @@ -48,12 +48,12 @@ class B { } } -/* @@? 17:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 18:9 Error TypeError: Unresolved reference dfdfsfdf */ -/* @@? 20:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 23:20 Error TypeError: Unresolved reference foo */ -/* @@? 27:11 Error TypeError: Property 'getInstance' does not exist on type 'B' */ -/* @@? 36:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 38:13 Error SyntaxError: Field type annotation expected. */ -/* @@? 39:20 Error TypeError: This expression is not callable. */ -/* @@? 43:11 Error TypeError: Property 'getInstance' does not exist on type 'B' */ +/* @@? 17:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:9 Error Semantic error ESE0143: Unresolved reference dfdfsfdf */ +/* @@? 20:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 23:20 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 27:11 Error Semantic error ESE0087: Property 'getInstance' does not exist on type 'B' */ +/* @@? 36:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 38:13 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 39:20 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 43:11 Error Semantic error ESE0087: Property 'getInstance' does not exist on type 'B' */ diff --git a/ets2panda/test/ast/parser/ets/default_parameter2.ets b/ets2panda/test/ast/parser/ets/default_parameter2.ets index be81d6ef84..d1c9e2323c 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter2.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter2.ets @@ -28,5 +28,5 @@ function foo(a : int) : int return a; } -/* @@@ label Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/default_parameter3.ets b/ets2panda/test/ast/parser/ets/default_parameter3.ets index 80c76508f8..ee78a9b90f 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter3.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter3.ets @@ -18,4 +18,4 @@ function foo(a : int = 10, /* @@ label */b : int, c : int = 15) : int return a + b; } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets index 445b9063bd..41dd14bccd 100644 --- a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets +++ b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets @@ -23,4 +23,4 @@ function main(): void { foo(/* @@ label */a == b); } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types '"alma"' and 'Int'. */ +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types '"alma"' and 'Int'. */ diff --git a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets index c8ac00947b..3cb0f0f45c 100644 --- a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets +++ b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets @@ -17,4 +17,4 @@ const PI314 = 3.14 function /* @@ label */PI314(): double { return 3.14 } -/* @@@ label Error TypeError: Variable 'PI314' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'PI314' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/do_while.ets b/ets2panda/test/ast/parser/ets/do_while.ets index a0256a02dc..7c9e2a69b8 100644 --- a/ets2panda/test/ast/parser/ets/do_while.ets +++ b/ets2panda/test/ast/parser/ets/do_while.ets @@ -15,9 +15,9 @@ do a -/* @@? 16:4 Error TypeError: Unresolved reference a */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected 'while'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 24:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 24:1 Error SyntaxError: Missing condition in do while statement */ -/* @@? 24:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 16:4 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected 'while'. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:1 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 24:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets b/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets index 9edf5999e6..c259139fc2 100644 --- a/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets @@ -16,11 +16,11 @@ do export Boolean [1] = delete while(true) -/* @@? 16:4 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:4 Error SyntaxError: Missing body in do while statement */ -/* @@? 16:4 Error SyntaxError: Unexpected token, expected 'while'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:20 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@? 16:20 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 17:4 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:4 Error Syntax error ESY0300: Missing body in do while statement */ +/* @@? 16:4 Error Syntax error ESY0228: Unexpected token, expected 'while'. */ +/* @@? 16:12 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:20 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@? 16:20 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 17:4 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets b/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets index afaa9713f4..eb85c1087a 100644 --- a/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets +++ b/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets @@ -16,6 +16,6 @@ do {} while() -/* @@? 17:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:1 Error SyntaxError: Missing condition in do while statement */ -/* @@? 22:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:1 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 22:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets index 9ed1927382..6b83a58b26 100644 --- a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets +++ b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets @@ -17,10 +17,10 @@ interface Test { set color(s: string)() } -/* @@? 17:25 Error SyntaxError: Unexpected token '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:26 Error SyntaxError: Identifier expected. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 17:25 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:25 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:26 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:26 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:26 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets index db487af187..1aa9247117 100644 --- a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets +++ b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets @@ -18,11 +18,11 @@ interface Test { proc()() // throws SyntaxError } -/* @@? 18:5 Error TypeError: Function proc is already declared. */ -/* @@? 18:11 Error SyntaxError: Unexpected token '('. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:12 Error SyntaxError: Identifier expected. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:1 Error SyntaxError: Identifier expected. */ +/* @@? 18:5 Error Semantic error ESE0130: Function proc is already declared. */ +/* @@? 18:11 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:11 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:12 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:12 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets index b36f9db2df..b378b676d0 100644 --- a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets +++ b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets @@ -20,4 +20,4 @@ export class testGC{ } } -/* @@? 16:23 Error TypeError: Identifier 'testGC' has already been declared. */ +/* @@? 16:23 Error Semantic error ESE0369: Identifier 'testGC' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets index 15a984dc8f..646b7af720 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets @@ -23,6 +23,6 @@ function main(): void { let x = new A("abc", 10) } -/* @@? 23:13 Error TypeError: Expected 0 arguments, got 2. */ -/* @@? 23:13 Error TypeError: No matching construct signature for module.A("abc", Int) */ -/* @@? 23:19 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ +/* @@? 23:13 Error Semantic error ESE0124: Expected 0 arguments, got 2. */ +/* @@? 23:13 Error Semantic error ESE0127: No matching construct signature for module.A("abc", Int) */ +/* @@? 23:19 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets index c2356b47e2..2f2566b411 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets @@ -22,4 +22,4 @@ import { A } from "dynamic_import_tests/modules/module" function foo(p: A): void { p.f1 = /* @@ label */10 } -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets index 20edcbd465..9b98ca9697 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets @@ -22,4 +22,4 @@ import { A } from "dynamic_import_tests/modules/module" function foo(): void { let x: string = /* @@ label */A.f2 } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets index fba26f3242..e1ac53fd20 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets @@ -55,11 +55,11 @@ function foo(i: I) { i./* @@ label7 */f3() // cte } -/* @@@ label Error TypeError: Animal is abstract therefore cannot be instantiated. */ -/* @@@ label1 Error TypeError: class Bird can not extends class Animal which is from dynamic declaration file. */ -/* @@@ label2 Error TypeError: class C can not extends class A which is from dynamic declaration file. */ -/* @@@ label3 Error TypeError: Property 'f3' does not exist on type 'C' */ -/* @@@ label4 Error TypeError: Property 'foa' does not exist on type 'C' */ -/* @@@ label5 Error TypeError: class C1 can not implements interface I which is from dynamic declaration file. */ -/* @@@ label6 Error TypeError: Property 'n' does not exist on type 'I' */ -/* @@@ label7 Error TypeError: Property 'f3' does not exist on type 'I' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0052: Animal is abstract therefore cannot be instantiated. */ +/* @@@ label1 Error Semantic error ESE24143: class Bird can not extends class Animal which is from dynamic declaration file. */ +/* @@@ label2 Error Semantic error ESE24143: class C can not extends class A which is from dynamic declaration file. */ +/* @@@ label3 Error Semantic error ESE0087: Property 'f3' does not exist on type 'C' */ +/* @@@ label4 Error Semantic error ESE0087: Property 'foa' does not exist on type 'C' */ +/* @@@ label5 Error Semantic error ESE24143: class C1 can not implements interface I which is from dynamic declaration file. */ +/* @@@ label6 Error Semantic error ESE0087: Property 'n' does not exist on type 'I' */ +/* @@@ label7 Error Semantic error ESE0087: Property 'f3' does not exist on type 'I' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets index db83b85465..e1a315f1d2 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets @@ -22,5 +22,5 @@ import { A } from "dynamic_import_tests/modules/module" function foo(p: A): void { /* @@ label */p.foo(/* @@ label1 */"abc") } -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("abc") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets index bb4b9e0c59..0acc5a345e 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets @@ -22,4 +22,4 @@ import { A } from "dynamic_import_tests/modules/module" function foo(): void { let x: string = /* @@ label */A.bar() } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets index ddca569f9a..b540f265cd 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets @@ -22,5 +22,5 @@ import { foo } from "dynamic_import_tests/modules/module" function main(): void { /* @@ label */foo(/* @@ label1 */"abc") } -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'A' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("abc") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'A' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets index 57d9770aff..733598b00a 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets @@ -22,4 +22,4 @@ import { C } from "dynamic_import_tests/modules/module" class A extends C /* @@ label */{ } -/* @@@ label Error TypeError: class A can not extends class C which is from dynamic declaration file. */ +/* @@@ label Error Semantic error ESE24143: class A can not extends class C which is from dynamic declaration file. */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets index 28aadb3b20..1a236140f0 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets @@ -29,4 +29,4 @@ class A implements I /* @@ label */{ } } -/* @@@ label Error TypeError: class A can not implements interface I which is from dynamic declaration file. */ +/* @@@ label Error Semantic error ESE24143: class A can not implements interface I which is from dynamic declaration file. */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets index 4832fff193..a7f77985c6 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets @@ -22,4 +22,4 @@ import { I } from "dynamic_import_tests/modules/module" /* @@ label */interface A extends I { } -/* @@@ label Error TypeError: interface A can not extends interface I which is from dynamic declaration file. */ +/* @@@ label Error Semantic error ESE24143: interface A can not extends interface I which is from dynamic declaration file. */ diff --git a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets index d1988ddb9f..56600510ca 100644 --- a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets +++ b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets @@ -27,5 +27,5 @@ function main() { arktest.assertTrue(!"nothing was thrown") } -/* @@? 18:15 Error SyntaxError: Unexpected token 'import'. */ -/* @@? 18:15 Error TypeError: 'await' expressions require Promise object as argument. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token 'import'. */ +/* @@? 18:15 Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ diff --git a/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets b/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets index dab191d5b7..efe4b354d5 100644 --- a/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets +++ b/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets @@ -21,9 +21,7 @@ return x+1; }); -/* @@? 16:2 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:1 Error TypeError: Can't resolve array type */ -/* @@? 20:8 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ - - +/* @@? 16:2 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:1 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 20:8 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/parser/ets/enum.ets b/ets2panda/test/ast/parser/ets/enum.ets index 3443eb3f6c..380b98951c 100644 --- a/ets2panda/test/ast/parser/ets/enum.ets +++ b/ets2panda/test/ast/parser/ets/enum.ets @@ -66,4 +66,4 @@ function main(): void { } } -/* @@? 26:10 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 26:10 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ diff --git a/ets2panda/test/ast/parser/ets/enum11.ets b/ets2panda/test/ast/parser/ets/enum11.ets index c78d967491..a0c4ec9a18 100644 --- a/ets2panda/test/ast/parser/ets/enum11.ets +++ b/ets2panda/test/ast/parser/ets/enum11.ets @@ -23,6 +23,6 @@ function main(): void { let ordinalFail: int = /* @@ label */Color as int; } -/* @@@ label Error TypeError: Enum name 'Color' used in the wrong context */ -/* @@? 21:22 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ -/* @@? 22:13 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@? 21:22 Error Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Error Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@@ label Error Semantic error ESE0144: Enum name 'Color' used in the wrong context */ diff --git a/ets2panda/test/ast/parser/ets/enum12.ets b/ets2panda/test/ast/parser/ets/enum12.ets index 2a7a1dd7bb..503a1692c9 100644 --- a/ets2panda/test/ast/parser/ets/enum12.ets +++ b/ets2panda/test/ast/parser/ets/enum12.ets @@ -24,4 +24,4 @@ function main(): void { test(Color.Red); } -/* @@@ label Error TypeError: 'toString' is an instance property of 'Color' */ +/* @@@ label Error Semantic error ESE0208: 'toString' is an instance property of 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum13.ets b/ets2panda/test/ast/parser/ets/enum13.ets index 0a4828ea51..ae62a4d5c3 100644 --- a/ets2panda/test/ast/parser/ets/enum13.ets +++ b/ets2panda/test/ast/parser/ets/enum13.ets @@ -24,4 +24,4 @@ function main(): void { test(Color.Red); } -/* @@? 20:28 Error TypeError: 'valueOf' is an instance property of 'Color' */ +/* @@? 20:28 Error Semantic error ESE0208: 'valueOf' is an instance property of 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum14.ets b/ets2panda/test/ast/parser/ets/enum14.ets index d152c4368f..c44ce1da62 100644 --- a/ets2panda/test/ast/parser/ets/enum14.ets +++ b/ets2panda/test/ast/parser/ets/enum14.ets @@ -24,4 +24,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ diff --git a/ets2panda/test/ast/parser/ets/enum16.ets b/ets2panda/test/ast/parser/ets/enum16.ets index 4b48931d3d..ec4aa967e6 100644 --- a/ets2panda/test/ast/parser/ets/enum16.ets +++ b/ets2panda/test/ast/parser/ets/enum16.ets @@ -19,8 +19,8 @@ enum InvalidInitTypeEnum { Blue } -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 18:13 Error TypeError: Unresolved reference b7 */ -/* @@? 18:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:3 Error TypeError: Unresolved reference Blue */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 18:13 Error Semantic error ESE0143: Unresolved reference b7 */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:3 Error Semantic error ESE0143: Unresolved reference Blue */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum17.ets b/ets2panda/test/ast/parser/ets/enum17.ets index 31bc25f6da..1a63846649 100644 --- a/ets2panda/test/ast/parser/ets/enum17.ets +++ b/ets2panda/test/ast/parser/ets/enum17.ets @@ -19,4 +19,4 @@ enum InvalidInitTypeEnum { Blue } -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum18.ets b/ets2panda/test/ast/parser/ets/enum18.ets index 8c34ab054c..e62e5b3842 100644 --- a/ets2panda/test/ast/parser/ets/enum18.ets +++ b/ets2panda/test/ast/parser/ets/enum18.ets @@ -19,5 +19,5 @@ enum InvalidInitTypeEnum { Blue } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum2.ets b/ets2panda/test/ast/parser/ets/enum2.ets index 7df33b51a9..403e8fb4ec 100644 --- a/ets2panda/test/ast/parser/ets/enum2.ets +++ b/ets2panda/test/ast/parser/ets/enum2.ets @@ -38,7 +38,7 @@ class NestedEnums { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label2 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label2 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/enum20.ets b/ets2panda/test/ast/parser/ets/enum20.ets index 3f79f66f30..e12fa96354 100644 --- a/ets2panda/test/ast/parser/ets/enum20.ets +++ b/ets2panda/test/ast/parser/ets/enum20.ets @@ -22,7 +22,7 @@ function main(): void { let white = Color.White./* @@ label3 */ordinal(); } -/* @@@ label Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label1 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label2 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label3 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label1 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label2 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label3 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum22.ets b/ets2panda/test/ast/parser/ets/enum22.ets index b052216cad..f7e7bfe6f0 100644 --- a/ets2panda/test/ast/parser/ets/enum22.ets +++ b/ets2panda/test/ast/parser/ets/enum22.ets @@ -17,4 +17,4 @@ enum duplicateKeysStringCase { Gray = "#ff808080", /* @@ label */Gray = "#ff808080" } -/* @@@ label Error TypeError: Variable 'Gray' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'Gray' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/enum23.ets b/ets2panda/test/ast/parser/ets/enum23.ets index fbea4d6c3b..de3251ed5f 100644 --- a/ets2panda/test/ast/parser/ets/enum23.ets +++ b/ets2panda/test/ast/parser/ets/enum23.ets @@ -17,4 +17,4 @@ enum duplicateKeysNumCase { Red = 1, /* @@ label */Red = 1 } -/* @@@ label Error TypeError: Variable 'Red' has already been declared. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0351: Variable 'Red' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/enum24.ets b/ets2panda/test/ast/parser/ets/enum24.ets index fd80f213a4..25073e467d 100644 --- a/ets2panda/test/ast/parser/ets/enum24.ets +++ b/ets2panda/test/ast/parser/ets/enum24.ets @@ -21,4 +21,4 @@ enum Direction { } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum26.ets b/ets2panda/test/ast/parser/ets/enum26.ets index 8a4845c43b..979b02bbf4 100644 --- a/ets2panda/test/ast/parser/ets/enum26.ets +++ b/ets2panda/test/ast/parser/ets/enum26.ets @@ -20,6 +20,6 @@ enum Direction { /* @@ label */Right = "RIGHT" /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error TypeError: Unresolved reference Right */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference Right */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum27.ets b/ets2panda/test/ast/parser/ets/enum27.ets index 1e38fdc9cc..12db9426de 100644 --- a/ets2panda/test/ast/parser/ets/enum27.ets +++ b/ets2panda/test/ast/parser/ets/enum27.ets @@ -23,5 +23,5 @@ enum Date { } -/* @@@ label2 Error TypeError: Class 'Date' is already defined with different type. */ -/* @@@ label1 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label2 Error Semantic error ESE0350: Class 'Date' is already defined with different type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum29.ets b/ets2panda/test/ast/parser/ets/enum29.ets index b7981e02d0..524e54f3c4 100644 --- a/ets2panda/test/ast/parser/ets/enum29.ets +++ b/ets2panda/test/ast/parser/ets/enum29.ets @@ -66,5 +66,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ diff --git a/ets2panda/test/ast/parser/ets/enum31.ets b/ets2panda/test/ast/parser/ets/enum31.ets index 78bc7d8d2c..13dbc23126 100644 --- a/ets2panda/test/ast/parser/ets/enum31.ets +++ b/ets2panda/test/ast/parser/ets/enum31.ets @@ -24,5 +24,5 @@ enum ColorC { Green = /* @@ label1 */ColorB.Green } -/* @@? 20:27 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 24:28 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum32.ets b/ets2panda/test/ast/parser/ets/enum32.ets index 0201bd17b9..48ae92f0c8 100644 --- a/ets2panda/test/ast/parser/ets/enum32.ets +++ b/ets2panda/test/ast/parser/ets/enum32.ets @@ -18,7 +18,7 @@ enum Color2 { Red = /* @@ label1 */Color.Red } enum Color3 { Red = /* @@ label2 */Color2.Red } enum Color4 { Red = /* @@ label3 */Color3.Red } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label1 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label2 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label3 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label2 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label3 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum34.ets b/ets2panda/test/ast/parser/ets/enum34.ets index 9fcdc33582..69cdeb3543 100644 --- a/ets2panda/test/ast/parser/ets/enum34.ets +++ b/ets2panda/test/ast/parser/ets/enum34.ets @@ -19,4 +19,4 @@ enum Fraction { } -/* @@? 18:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 18:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum5.ets b/ets2panda/test/ast/parser/ets/enum5.ets index 74fc8ad53d..1daa772a73 100644 --- a/ets2panda/test/ast/parser/ets/enum5.ets +++ b/ets2panda/test/ast/parser/ets/enum5.ets @@ -18,6 +18,6 @@ enum MissingCommaEnum { /* @@ label */Green /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error TypeError: Unresolved reference Green */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference Green */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum6.ets b/ets2panda/test/ast/parser/ets/enum6.ets index bea6774682..87bb97b478 100644 --- a/ets2panda/test/ast/parser/ets/enum6.ets +++ b/ets2panda/test/ast/parser/ets/enum6.ets @@ -25,4 +25,4 @@ function main(): void { i = i./* @@ label */Blue; } -/* @@@ label Error TypeError: 'Blue' is a static property of 'Color' */ +/* @@@ label Error Semantic error ESE0207: 'Blue' is a static property of 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum7.ets b/ets2panda/test/ast/parser/ets/enum7.ets index 9fb29fa64f..c96ffb5397 100644 --- a/ets2panda/test/ast/parser/ets/enum7.ets +++ b/ets2panda/test/ast/parser/ets/enum7.ets @@ -21,4 +21,4 @@ function main(): void { arktest.assertTrue(/* @@ label */Color.Red != Color2.Red); } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@@ label Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ diff --git a/ets2panda/test/ast/parser/ets/enum8.ets b/ets2panda/test/ast/parser/ets/enum8.ets index 5da56671e4..2f8a778735 100644 --- a/ets2panda/test/ast/parser/ets/enum8.ets +++ b/ets2panda/test/ast/parser/ets/enum8.ets @@ -20,4 +20,4 @@ function main(): void { let red: Color = /* @@ label */Color2.Red; } -/* @@@ label Error TypeError: Type 'Color2' cannot be assigned to type 'Color' */ +/* @@@ label Error Semantic error ESE0318: Type 'Color2' cannot be assigned to type 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets index 17fc47a361..22ca20b1ce 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets @@ -19,4 +19,4 @@ enum Fraction: string { } -/* @@? 16:23 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ +/* @@? 16:23 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation4.ets b/ets2panda/test/ast/parser/ets/enumAnnotation4.ets index 2816b123bb..f15bb02f19 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation4.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation4.ets @@ -19,4 +19,4 @@ enum Fraction: customInt { } -/* @@? 16:26 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ \ No newline at end of file +/* @@? 16:26 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation5.ets b/ets2panda/test/ast/parser/ets/enumAnnotation5.ets index 64ff1a3635..640bfbcea0 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation5.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation5.ets @@ -19,5 +19,5 @@ enum Fraction: int { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 18:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 18:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets index b52526a67f..d503356a07 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets @@ -19,4 +19,4 @@ enum Fraction: byte { } -/* @@? 16:21 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ +/* @@? 16:21 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ diff --git a/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets b/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets index b80dde0c68..14f05d8c4d 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets @@ -27,6 +27,6 @@ enum C { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 26:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 26:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum_default_negative.ets b/ets2panda/test/ast/parser/ets/enum_default_negative.ets index 617fe98628..1092c0efdf 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_negative.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_negative.ets @@ -26,12 +26,12 @@ enum D { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 17:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 21:9 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 26:1 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 20:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 21:9 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 26:1 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 38:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 38:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets index 5ccbb98118..eaf31b09ad 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets @@ -16,7 +16,6 @@ enum // Printed two errors about eos, because there are two attempts to read identifiers: name enum and name property -/* @@@ label Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 22:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets index 7a2ac6350b..9a27fe2498 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets @@ -16,5 +16,4 @@ enum Color { Red, Green // Printed two errors about eos, because there are two attempts to read identifiers: name enum and name property -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets index 13fbdd0ad7..906cf36623 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets @@ -15,6 +15,5 @@ enum a -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 20:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets b/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets index 01cd69625e..8b52587e28 100644 --- a/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets +++ b/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets @@ -26,5 +26,5 @@ function foo(): number { return n! } -/* @@? 23:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:12 Error Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ +/* @@? 23:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:12 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/export_after_statement.ets b/ets2panda/test/ast/parser/ets/export_after_statement.ets index cf56e544de..a1f2d84d5c 100644 --- a/ets2panda/test/ast/parser/ets/export_after_statement.ets +++ b/ets2panda/test/ast/parser/ets/export_after_statement.ets @@ -16,5 +16,5 @@ while (false) export { } -/* @@? 16:15 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:15 Error SyntaxError: Missing body in while statement */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:15 Error Syntax error ESY0300: Missing body in while statement */ diff --git a/ets2panda/test/ast/parser/ets/export_as.ets b/ets2panda/test/ast/parser/ets/export_as.ets index f2c130fbe8..e9e395bc8b 100644 --- a/ets2panda/test/ast/parser/ets/export_as.ets +++ b/ets2panda/test/ast/parser/ets/export_as.ets @@ -15,6 +15,6 @@ export /* @@ label1 */as /* @@ label2 */namespace mathLib {} -/* @@@ label1 Error SyntaxError: Universal module definitions are not supported, please use ordinary import/export syntax instead. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'as'. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'namespace'. */ +/* @@@ label1 Error Syntax error ESY114179: Universal module definitions are not supported, please use ordinary import/export syntax instead. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'as'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'namespace'. */ diff --git a/ets2panda/test/ast/parser/ets/export_assignment.ets b/ets2panda/test/ast/parser/ets/export_assignment.ets index 7dc0bbfcc8..e1284d4b2f 100644 --- a/ets2panda/test/ast/parser/ets/export_assignment.ets +++ b/ets2panda/test/ast/parser/ets/export_assignment.ets @@ -15,7 +15,7 @@ export /* @@ label1 */= /* @@ label2 */Point -/* @@@ label1 Error SyntaxError: 'export = ...' syntax is not supported, use regular import/export instead! */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'Point'. */ -/* @@@ label2 Error TypeError: Unresolved reference Point */ +/* @@@ label1 Error Syntax error ESY0307: 'export = ...' syntax is not supported, use regular import/export instead! */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'Point'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference Point */ diff --git a/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets b/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets index dfd5025564..a0af5f0611 100644 --- a/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets +++ b/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets @@ -18,4 +18,4 @@ function foo(): void {} export default {myFunc as default, foo as default} -/* @@? 22:1 Error SyntaxError: export default is not allowed to export multiple specifiers. */ +/* @@? 22:1 Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets index 47d3887c4c..f65dedd5d7 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets @@ -17,9 +17,4 @@ function animatableWidth(this: TextAttribute, this { this.width(width); return this; } -/* @@? 16:2 Error TypeError: Cannot find type 'AnimatableExtend'. */ -/* @@? 17:32 Error TypeError: Cannot find type 'TextAttribute'. */ -/* @@? 17:52 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:52 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:54 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 17:59 Error TypeError: Property 'width' does not exist on type 'Error' */ +/* @@? 17:52 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets index 752a06d4cc..22fcf9697b 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets @@ -16,18 +16,4 @@ let a = (this: TextAttribute, this { this.width(width); return this; } -/* @@? 16:9 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:9 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:9 Error TypeError: Type 'Error' cannot be assigned to type 'ETSGLOBAL' */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:16 Error SyntaxError: Unexpected token 'TextAttribute'. */ -/* @@? 16:16 Error TypeError: Unresolved reference TextAttribute */ -/* @@? 16:29 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:31 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 16:31 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:38 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:43 Error TypeError: Property 'width' does not exist on type 'Error' */ -/* @@? 16:57 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 16:64 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:64 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 16:14 Error Syntax error ESY0000: Unexpected token, expected ')' */ diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets index 4354b9c818..429da1b21b 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets @@ -27,6 +27,6 @@ function main() { fruit.price(); } -/* @@? 20:5 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 20:20 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 27:11 Error TypeError: Property 'price' does not exist on type 'Fruit' */ +/* @@? 20:5 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 20:20 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 27:11 Error Semantic error ESE0087: Property 'price' does not exist on type 'Fruit' */ diff --git a/ets2panda/test/ast/parser/ets/fields.ets b/ets2panda/test/ast/parser/ets/fields.ets index 31cdc48edb..e0bc492128 100644 --- a/ets2panda/test/ast/parser/ets/fields.ets +++ b/ets2panda/test/ast/parser/ets/fields.ets @@ -27,4 +27,4 @@ class C { protected static readonly h = 30; } -/* @@@ label Error TypeError: Variable 'f' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'f' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets index 83583c963d..da5cb6c77b 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets @@ -49,6 +49,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 48:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 48:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 48:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 48:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets index 6282df4a6f..f6452527ab 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets @@ -47,6 +47,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/forOfType.ets b/ets2panda/test/ast/parser/ets/forOfType.ets index 32ef6ae505..1d09deaa17 100644 --- a/ets2panda/test/ast/parser/ets/forOfType.ets +++ b/ets2panda/test/ast/parser/ets/forOfType.ets @@ -17,4 +17,4 @@ function k() : long { return 0; } for ( Fi of /* @@ label */ k as () => bigint | long ) await this instanceof int -/* @@@ label Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 17:28 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/for_await_of_loop.ets b/ets2panda/test/ast/parser/ets/for_await_of_loop.ets index 3b41c8b661..9d82af2c42 100644 --- a/ets2panda/test/ast/parser/ets/for_await_of_loop.ets +++ b/ets2panda/test/ast/parser/ets/for_await_of_loop.ets @@ -17,8 +17,8 @@ for await (let k: int /* @@ label1 */= 0; /* @@ label2 */k < d.length; k++) { this.$_set_unsafe(k + 1, d[k]) } -/* @@@ label1 Error SyntaxError: for-await-of loop variable declaration may not have an initializer. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'k'. */ -/* @@? 16:62 Error TypeError: Unresolved reference d */ -/* @@? 17:5 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 17:10 Error TypeError: Property '$_set_unsafe' does not exist on type 'Error' */ +/* @@@ label1 Error Syntax error ESY0097: for-await-of loop variable declaration may not have an initializer. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'k'. */ +/* @@? 16:62 Error Semantic error ESE0143: Unresolved reference d */ +/* @@? 17:5 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 17:10 Error Semantic error ESE0087: Property '$_set_unsafe' does not exist on type 'Error' */ diff --git a/ets2panda/test/ast/parser/ets/for_in.ets b/ets2panda/test/ast/parser/ets/for_in.ets index 922bde17d5..9d16375586 100644 --- a/ets2panda/test/ast/parser/ets/for_in.ets +++ b/ets2panda/test/ast/parser/ets/for_in.ets @@ -17,6 +17,5 @@ let a: number[] = [1.0, 2.0, 3.0] for (let i /* @@ label */in a) { } -/* @@@ label Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@@ label Error SyntaxError: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays - and iterable objects. */ +/* @@@ label Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@@ label Error Syntax error ESY6987: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ diff --git a/ets2panda/test/ast/parser/ets/for_of_03.ets b/ets2panda/test/ast/parser/ets/for_of_03.ets index 12cd09f1b7..121c34db10 100644 --- a/ets2panda/test/ast/parser/ets/for_of_03.ets +++ b/ets2panda/test/ast/parser/ets/for_of_03.ets @@ -23,5 +23,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/for_of_04.ets b/ets2panda/test/ast/parser/ets/for_of_04.ets index 0b51c9f55c..b9e15e27ad 100644 --- a/ets2panda/test/ast/parser/ets/for_of_04.ets +++ b/ets2panda/test/ast/parser/ets/for_of_04.ets @@ -25,14 +25,14 @@ function main(): void { for (i in 50) { a += 10 } -/* @@? 20:9 Error SyntaxError: Type annotation is not allowed when existing variable is used as loop iterator in 'for' statement. */ -/* @@? 20:11 Error SyntaxError: Expected ';', got 'double'. */ -/* @@? 20:11 Error SyntaxError: Unexpected token 'double'. */ -/* @@? 20:18 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 20:18 Error TypeError: Unresolved reference of */ -/* @@? 20:21 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 20:21 Error TypeError: Unresolved reference a */ -/* @@? 20:22 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:24 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:11 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 25:11 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 20:9 Error Syntax error ESY0212: Type annotation is not allowed when existing variable is used as loop iterator in 'for' statement. */ +/* @@? 20:11 Error Syntax error ESY0230: Expected ';', got 'double'. */ +/* @@? 20:11 Error Syntax error ESY0227: Unexpected token 'double'. */ +/* @@? 20:18 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 20:18 Error Semantic error ESE0143: Unresolved reference of */ +/* @@? 20:21 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:22 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:24 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:11 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 25:11 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/for_with_empty_body.ets b/ets2panda/test/ast/parser/ets/for_with_empty_body.ets index a1e35845ea..ea7da8cae1 100644 --- a/ets2panda/test/ast/parser/ets/for_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/for_with_empty_body.ets @@ -23,4 +23,4 @@ try { } -/* @@? 22:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 22:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets index 898c63dfdb..04c3b30b6d 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets @@ -21,4 +21,4 @@ function foo() {} function main(): int { return 0 } -/* @@@ label Error TypeError: Duplicate type parameter 'T'. */ +/* @@@ label Error Semantic error ESE0182: Duplicate type parameter 'T'. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets index e781375637..3d0f739774 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets @@ -23,19 +23,19 @@ declare class Environment { static foo7(props1: {key:string, value:int}[], props2: int[]): void; } -/* @@? 17:23 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 18:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 19:25 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 21:20 Error SyntaxError: Invalid Type. */ -/* @@? 21:28 Error SyntaxError: Invalid Type. */ -/* @@? 21:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 21:39 Error SyntaxError: Unexpected token '--'. */ -/* @@? 21:41 Error SyntaxError: Unexpected token '-'. */ -/* @@? 21:42 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:43 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 22:20 Error SyntaxError: Invalid Type. */ -/* @@? 23:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 23:36 Error SyntaxError: Unexpected token ','. */ +/* @@? 17:23 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 19:25 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 21:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 21:39 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token '-'. */ +/* @@? 21:42 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:43 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 22:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 23:36 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets index 97ae8eaf9d..d817388f80 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets @@ -16,5 +16,5 @@ let a: (c: int, b: int) => char /* @@ label */rethrows; -/* @@@ label Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@@ label Error TypeError: Unresolved reference rethrows */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference rethrows */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets index 8f9e154697..603489d13a 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets @@ -16,4 +16,4 @@ function foo(a: (b: int = /* @@ label */0) => int): void { } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets index 7896f0b6aa..73b38c40fa 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets @@ -25,4 +25,4 @@ function main(): void { foo(func); } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ diff --git a/ets2panda/test/ast/parser/ets/function_decl.ets b/ets2panda/test/ast/parser/ets/function_decl.ets index 6b0e4ac716..9f0f41533a 100644 --- a/ets2panda/test/ast/parser/ets/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/function_decl.ets @@ -14,4 +14,4 @@ */ function /* @@ label */foo(a: int, b: float, ...c: int[]): boolean {} -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets index 08913b18bb..fe92537174 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets @@ -24,6 +24,6 @@ let void6: (i: int ) /* @@ label */= void1 /* @@ label1 */; // CTE; need function main() {} -/* @@? 23:43 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 23:43 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 23:45 Error SyntaxError: Unexpected token 'void1'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 23:45 Error Syntax error ESY0227: Unexpected token 'void1'. */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets index 7ae27d0965..ec3ff65e28 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets @@ -16,4 +16,4 @@ let fn: (i: int) => int = () => {/* @@ label */return; }; -/* @@@ label Error TypeError: Missing return value. */ +/* @@@ label Error Semantic error ESE0032: Missing return value. */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets index 615533dfc4..ec7a68d458 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets @@ -17,4 +17,4 @@ function void1(i: int) {} let fn: (i: int) => int = /* @@ label */void1; -/* @@@ label Error TypeError: Type '(i: Int) => void' cannot be assigned to type '(i: Int) => Int' */ +/* @@@ label Error Semantic error ESE0318: Type '(i: Int) => void' cannot be assigned to type '(i: Int) => Int' */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets index 89efc28509..f69fc75d0a 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets @@ -22,5 +22,5 @@ final class B extends A { public override fn(): int { return 42; } } -/* @@? 22:21 Error TypeError: fn(): Int in B cannot override fn(): void in A because overriding return type is not compatible with the other return type. */ -/* @@? 22:21 Error TypeError: Method fn(): Int in B not overriding any method */ +/* @@? 22:21 Error Semantic error ESE0141: fn(): Int in B cannot override fn(): void in A because overriding return type is not compatible with the other return type. */ +/* @@? 22:21 Error Semantic error ESE0136: Method fn(): Int in B not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/generator_function.ets b/ets2panda/test/ast/parser/ets/generator_function.ets index 7f865bb644..d4a28a4d61 100644 --- a/ets2panda/test/ast/parser/ets/generator_function.ets +++ b/ets2panda/test/ast/parser/ets/generator_function.ets @@ -14,4 +14,4 @@ */ function* f() {} -/* @@? 16:11 Error SyntaxError: Generator functions are not supported, please use async/await mechanism for multitasking */ +/* @@? 16:11 Error Syntax error ESY0314: Generator functions are not supported, please use async/await mechanism for multitasking */ diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets index 0c3d580491..d478c4aa22 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets @@ -15,4 +15,4 @@ class C1 {} -/* @@@ label Error SyntaxError: Required type parameters may not follow optional type parameters. */ +/* @@@ label Error Syntax error ESY0179: Required type parameters may not follow optional type parameters. */ diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets index 87657b52f3..b8b0ad79bf 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets @@ -23,5 +23,5 @@ function main() : void { let a1 = /* @@ label */new A(/* @@ label1 */"hello") } -/* @@@ label1 Error TypeError: Type '"hello"' is not compatible with type 'Double' at index 1 */ -/* @@@ label Error TypeError: No matching construct signature for genericDefaultParam_4.A("hello") */ +/* @@@ label Error Semantic error ESE0127: No matching construct signature for genericDefaultParam_4.A("hello") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"hello"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets index 51901fd4f3..4969e9f9bc 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets @@ -14,4 +14,4 @@ */ class C {} -/* @@@ label Error TypeError: Type Parameter T3 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T3 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets index ab1b916139..ad6f3f60a5 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets @@ -13,4 +13,4 @@ * limitations under the License. */ function foo(){} -/* @@@ label Error TypeError: Type Parameter F should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter F should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets index deee3d30ac..9b03b70037 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets index 1335e78b55..33dc2ddb8d 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets index 807151f8e0..5efdd6a870 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo(){} -/* @@? 1:3 Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@? 1:3 Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets index 56b63e63fe..a153c6d94f 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo, T2=SomeType>(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_error.ets b/ets2panda/test/ast/parser/ets/generic_error.ets index 195bb99fa6..33e9474703 100644 --- a/ets2panda/test/ast/parser/ets/generic_error.ets +++ b/ets2panda/test/ast/parser/ets/generic_error.ets @@ -23,4 +23,4 @@ function main(): void { let m = new OldMap/* @@ label */(); } -/* @@@ label Error TypeError: Type argument 'C' should be a subtype of 'Comparable'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'C' should be a subtype of 'Comparable'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets new file mode 100644 index 0000000000..aa2e22db83 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main() { + let foo = < (): void => {} +} + +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 17:17 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:17 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 17:22 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:22 Error Syntax error ESY0230: Expected '=>', got 'identification literal'. */ +/* @@? 17:22 Error Semantic error ESE0143: Unresolved reference : */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets new file mode 100644 index 0000000000..da2ef6b8db --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main() { + let foo1 = (p: T): T => p; + foo1("1", 2) + foo1("1", 2) + + let foo2 = (p: T): NonNullable =>p; + + let foo3 = (p: T): T => p; + + let foo4 = (p: T, q: U): T => p; + foo4(1) + foo4(1) + foo4(1, 1) +} + +/* @@? 17:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 18:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 21:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 23:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 25:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 26:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 27:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 28:5 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets new file mode 100644 index 0000000000..024f174b8f --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +let foo1 = +let foo2 = () +let foo3 = ; +let foo4 = (); +function main() { + let foo5 = + let foo6 = () +} + +/* @@? 17:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token 'foo2'. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference foo2 */ +/* @@? 18:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 19:5 Error Syntax error ESY0227: Unexpected token 'foo3'. */ +/* @@? 19:5 Error Semantic error ESE0143: Unresolved reference foo3 */ +/* @@? 19:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 19:15 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 20:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 20:16 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:17 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 22:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 23:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token 'foo6'. */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference foo6 */ +/* @@? 23:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 23:20 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 48:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets b/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets index b3b1333cee..7424a63784 100644 --- a/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets +++ b/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets @@ -21,6 +21,6 @@ type RecordMap = { n: number }; let myMap: MyMap<"n"> = { kind: "n" }; -/* @@? 16:37 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 16:41 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 20:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:37 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 16:41 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 20:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets b/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets index 3b5e329f91..d6c7c670f4 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets @@ -19,4 +19,4 @@ function main(){ const myCharClass = new X/* @@ label */(); } -/* @@@ label Error TypeError: Type argument 'Char' should be a subtype of 'Comparable'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'Char' should be a subtype of 'Comparable'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets index ec985c8f81..d8a9b6f2a4 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets @@ -21,6 +21,6 @@ class Base { class Derived extends Base {} -/* @@? 18:11 Error TypeError: Type 'Base' is generic but type argument were not provided. */ -/* @@? 22:23 Error TypeError: Type 'Base' is generic but type argument were not provided. */ -/* @@? 22:23 Error TypeError: The super type of 'Derived' class is not extensible. */ +/* @@? 18:11 Error Semantic error ESE0170: Type 'Base' is generic but type argument were not provided. */ +/* @@? 22:23 Error Semantic error ESE0170: Type 'Base' is generic but type argument were not provided. */ +/* @@? 22:23 Error Semantic error ESE0176: The super type of 'Derived' class is not extensible. */ diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets index 5b73550d83..941254b96a 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets @@ -40,5 +40,5 @@ function doSomethingUseful() { } -/* @@@ label Error TypeError: Type 'Boxx' is generic but type argument were not provided. */ -/* @@@ label1 Error TypeError: Type 'Boxx' is generic but type argument were not provided. */ +/* @@@ label Error Semantic error ESE0170: Type 'Boxx' is generic but type argument were not provided. */ +/* @@@ label1 Error Semantic error ESE0170: Type 'Boxx' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets index 0a69841695..ba3b398421 100644 --- a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets +++ b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets @@ -17,5 +17,5 @@ class SomeClass { $_get (index: string, value: SomeClass) { } } -/* @@? 17:5 Error SyntaxError: The special predefined method '$_get' should have exactly one required parameter. */ -/* @@? 17:11 Error TypeError: 'The special predefined method '$_get' shouldn't have void return type. */ +/* @@? 17:5 Error Syntax error ESY0221: The special predefined method '$_get' should have exactly one required parameter. */ +/* @@? 17:11 Error Semantic error ESE0093: 'The special predefined method '$_get' shouldn't have void return type. */ diff --git a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets index 2247606d2b..03f3d22741 100644 --- a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets +++ b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets @@ -21,4 +21,4 @@ class AA implements A { /* @@ label */prop2 = new Int(); } -/* @@@ label Error TypeError: Method prop2(prop2: Int): void in AA not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method prop2(prop2: Int): void in AA not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/getter_native.ets b/ets2panda/test/ast/parser/ets/getter_native.ets index 2c36a49e5f..e4c16376cf 100644 --- a/ets2panda/test/ast/parser/ets/getter_native.ets +++ b/ets2panda/test/ast/parser/ets/getter_native.ets @@ -20,4 +20,4 @@ class Door { } } -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets index aca30c3be7..944187f075 100644 --- a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets +++ b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets @@ -20,6 +20,6 @@ interface A { } } -/* @@? 17:5 Error TypeError: Function color is already declared. */ -/* @@? 18:9 Error TypeError: Variable 'color' has already been declared. */ -/* @@? 18:14 Error SyntaxError: Getter and setter methods must be abstracts in the interface body. */ +/* @@? 17:5 Error Semantic error ESE0130: Function color is already declared. */ +/* @@? 18:9 Error Semantic error ESE0351: Variable 'color' has already been declared. */ +/* @@? 18:14 Error Syntax error ESY0031: Getter and setter methods must be abstracts in the interface body. */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets b/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets index ba846261ac..cf961bd766 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets @@ -39,7 +39,7 @@ class Hex extends Core { } } -/* @@? 33:22 Error TypeError: size(s: Int): void in Hex cannot override size(s: Int): void in Core because overridden method is final. */ -/* @@? 33:22 Error TypeError: Method size(s: Int): void in Hex not overriding any method */ -/* @@? 37:22 Error TypeError: size(): Int in Hex cannot override size(): Int in Core because overridden method is final. */ -/* @@? 37:22 Error TypeError: Method size(): Int in Hex not overriding any method */ +/* @@? 33:22 Error Semantic error ESE0141: size(s: Int): void in Hex cannot override size(s: Int): void in Core because overridden method is final. */ +/* @@? 33:22 Error Semantic error ESE0136: Method size(s: Int): void in Hex not overriding any method */ +/* @@? 37:22 Error Semantic error ESE0141: size(): Int in Hex cannot override size(): Int in Core because overridden method is final. */ +/* @@? 37:22 Error Semantic error ESE0136: Method size(): Int in Hex not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets b/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets index 0336a0ba77..a59ba07da6 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets @@ -26,5 +26,5 @@ function main() { a.i = 2 } -/* @@? 20:58 Warning Warning: Reading the value of the property inside its getter may lead to an endless loop. */ -/* @@? 21:52 Warning Warning: Assigning new value to the property inside its setter may lead to an endless loop. */ +/* @@? 20:58 Warning Warning W0023: Reading the value of the property inside its getter may lead to an endless loop. */ +/* @@? 21:52 Warning Warning W0024: Assigning new value to the property inside its setter may lead to an endless loop. */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets b/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets index f34e24383d..6d9d405dcc 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets @@ -18,4 +18,4 @@ class A { final get foo/* @@ label */(): int {} } -/* @@@ label Error TypeError: Getter and setter methods must have the same accessor modifiers */ +/* @@@ label Error Semantic error ESE0220: Getter and setter methods must have the same accessor modifiers */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets b/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets index cb74e1bad8..fad67bd6a3 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets @@ -18,4 +18,4 @@ class Person { async get age(): number { return this._age } } -/* @@? 18:11 Error SyntaxError: Modifiers of getter and setter are limited to ('abstract', 'static', 'final', 'override', 'native'). */ +/* @@? 18:11 Error Syntax error ESY0107: Modifiers of getter and setter are limited to ('abstract', 'static', 'final', 'override', 'native'). */ diff --git a/ets2panda/test/ast/parser/ets/global_const_vars1.ets b/ets2panda/test/ast/parser/ets/global_const_vars1.ets index 5a02f4857e..cabcaccb20 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars1.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars1.ets @@ -18,4 +18,4 @@ const a: int; function main(): void {} -/* @@? 17:8 Error TypeError: Missing initializer in const declaration */ +/* @@? 17:8 Error Semantic error ESE0363: Missing initializer in const declaration */ diff --git a/ets2panda/test/ast/parser/ets/global_const_vars2.ets b/ets2panda/test/ast/parser/ets/global_const_vars2.ets index d84138433c..777f2ce0c3 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars2.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars2.ets @@ -17,4 +17,4 @@ const date: Date/* @@ label */; function main(): void {} -/* @@? 16:10 Error TypeError: Missing initializer in const declaration */ +/* @@? 16:10 Error Semantic error ESE0363: Missing initializer in const declaration */ diff --git a/ets2panda/test/ast/parser/ets/global_const_vars4.ets b/ets2panda/test/ast/parser/ets/global_const_vars4.ets index 7cc9886ebc..c3360a9e0c 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars4.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars4.ets @@ -27,4 +27,4 @@ class ABC { public main(): void {} } -/* @@@ label Error TypeError: Cannot assign to a readonly variable date */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable date */ diff --git a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets index 3dc1bb95b0..e9e965ccbf 100644 --- a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets @@ -27,8 +27,8 @@ function foo2() { console.log(a + 5) } -/* @@@ label1 Error SyntaxError: Illegal break statement. */ -/* @@@ label2 Error SyntaxError: Illegal break statement. */ -/* @@? 18:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 25:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 27:17 Error TypeError: Unresolved reference a */ +/* @@@ label1 Error Syntax error ESY0209: Illegal break statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Syntax error ESY0209: Illegal break statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 27:17 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets index 51b0927f20..f20d7e8bf3 100644 --- a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets @@ -41,12 +41,12 @@ function foo4() { console.log(a + 5) } -/* @@? 18:5 Error SyntaxError: Illegal continue statement. */ -/* @@? 18:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 25:5 Error SyntaxError: Illegal continue statement. */ -/* @@? 25:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 27:17 Error TypeError: Unresolved reference a */ -/* @@? 32:5 Error SyntaxError: Illegal break statement. */ -/* @@? 32:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 39:5 Error SyntaxError: Illegal break statement. */ -/* @@? 39:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 18:5 Error Syntax error ESY0165: Illegal continue statement. */ +/* @@? 18:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 25:5 Error Syntax error ESY0165: Illegal continue statement. */ +/* @@? 25:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 27:17 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 32:5 Error Syntax error ESY0209: Illegal break statement. */ +/* @@? 32:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 39:5 Error Syntax error ESY0209: Illegal break statement. */ +/* @@? 39:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ diff --git a/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets b/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets index de62283798..3b3d5a8893 100644 --- a/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets +++ b/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets @@ -25,5 +25,5 @@ throw /* @@ label */{ } -/* @@@ label Error SyntaxError: Illegal newline after throw. */ -/* @@@ label Error TypeError: need to specify target type for class composite */ +/* @@@ label Error Syntax error ESY0172: Illegal newline after throw. */ +/* @@@ label Error Semantic error ESE0062: need to specify target type for class composite */ diff --git a/ets2panda/test/ast/parser/ets/import_assertion.ets b/ets2panda/test/ast/parser/ets/import_assertion.ets index bbf4ed4a28..180ea60151 100644 --- a/ets2panda/test/ast/parser/ets/import_assertion.ets +++ b/ets2panda/test/ast/parser/ets/import_assertion.ets @@ -16,7 +16,7 @@ import * as Pt from "mod" /* @@ label1 */assert /* @@ label2 */{ type: /* @@ label3 */"json" } -/* @@@ label1 Error SyntaxError: Import assertion is not supported, please use the ordinary import syntax instead! */ -/* @@@ label1 Error TypeError: Unresolved reference assert */ -/* @@@ label2 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label3 Error SyntaxError: Label must be followed by a loop statement. */ +/* @@@ label1 Error Syntax error ESY0313: Import assertion is not supported, please use the ordinary import syntax instead! */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference assert */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label3 Error Syntax error ESY0038: Label must be followed by a loop statement. */ diff --git a/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets b/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets index dd2ff3124f..d4db418f32 100644 --- a/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets +++ b/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets @@ -15,6 +15,6 @@ import {/* @@ label1 */} /* @@ label2 */from /* @@ label3 */'module' -/* @@@ label1 Error SyntaxError: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ -/* @@@ label2 Error TypeError: Unresolved reference from */ -/* @@@ label3 Error SyntaxError: Unexpected token 'module'. */ +/* @@@ label1 Error Syntax error ESY73297: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'module'. */ diff --git a/ets2panda/test/ast/parser/ets/import_no_side_effect.ets b/ets2panda/test/ast/parser/ets/import_no_side_effect.ets index cd4d80cab0..91dadd50dd 100644 --- a/ets2panda/test/ast/parser/ets/import_no_side_effect.ets +++ b/ets2panda/test/ast/parser/ets/import_no_side_effect.ets @@ -15,4 +15,4 @@ import /* @@ label1 */'module' -/* @@@ label1 Error SyntaxError: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ +/* @@@ label1 Error Syntax error ESY73297: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ diff --git a/ets2panda/test/ast/parser/ets/import_require.ets b/ets2panda/test/ast/parser/ets/import_require.ets index ad8766f57b..0253736ddd 100644 --- a/ets2panda/test/ast/parser/ets/import_require.ets +++ b/ets2panda/test/ast/parser/ets/import_require.ets @@ -15,7 +15,7 @@ import m /* @@ label1 */= /* @@ label2 */require("mod") -/* @@@ label1 Error SyntaxError: Importing by 'require' and 'import' assignment is not supported, use 'import * as ... from ...' form instead! */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'require'. */ -/* @@@ label2 Error TypeError: Unresolved reference require */ +/* @@@ label1 Error Syntax error ESY0312: Importing by 'require' and 'import' assignment is not supported, use 'import * as ... from ...' form instead! */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'require'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference require */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets b/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets index 349644d2b1..8f4a9f6f60 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets @@ -18,8 +18,8 @@ function main():void{ console.log("not hehe") } -/* @@? 15:10 Error SyntaxError: Expected 'as', got 'number literal'. */ -/* @@? 15:10 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 15:16 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 15:21 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 15:26 Error SyntaxError: Unexpected token 'import_tests/packages'. */ +/* @@? 15:10 Error Syntax error ESY0230: Expected 'as', got 'number literal'. */ +/* @@? 15:10 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 15:16 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 15:21 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 15:26 Error Syntax error ESY0227: Unexpected token 'import_tests/packages'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets b/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets index 816c81ef2b..a8aacf8b8f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets @@ -20,4 +20,4 @@ function main(): void { all./* @@ label */bar(); } -/* @@@ label Error TypeError: Property 'bar' does not exist on type 'check_exported_2' */ +/* @@@ label Error Semantic error ESE0087: Property 'bar' does not exist on type 'check_exported_2' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets b/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets index f7f0e84322..fe6efec2ee 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets @@ -15,4 +15,4 @@ import default_imported from /* @@ label */"import_tests/modules/missing_default_export"; -/* @@@ label Error TypeError: Cannot find default imported element in the target */ +/* @@@ label Error Semantic error ESE0358: Cannot find default imported element in the target */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets b/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets index b9a0fc925d..be36dac487 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets @@ -15,8 +15,8 @@ import {default/* @@ label */} from /* @@ label1 */"./modules/class_default_module.ets"/* @@ label2 */; -/* @@@ label Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@@ label Error SyntaxError: Unexpected token '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0095: Unexpected token, expected 'as'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets index 3693002348..3e17eab9f7 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets @@ -18,5 +18,5 @@ function foo2(): void {} export {foo1 /* @@ label */foo2/* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets index 9a2411abe4..b0c3740d90 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets @@ -19,4 +19,4 @@ function foo3(): void {} export {foo2,} export {/* @@ label */, foo3} -/* @@@ label Error SyntaxError: Unexpected token ','. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets index 553ab2b287..0ccd5e092b 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets @@ -20,4 +20,4 @@ function main():void{ } -/* @@@ label Error TypeError: 'bar1' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'bar1' type does not exist. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets index bcd085eb42..ee7a3f9669 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets @@ -20,4 +20,4 @@ function main():void{ } -/* @@@ label Error TypeError: Property 'foo1' does not exist on type 'export' */ +/* @@@ label Error Semantic error ESE0087: Property 'foo1' does not exist on type 'export' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets index 67fe814600..b579ebd7d3 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets @@ -20,4 +20,4 @@ function main():void{ } -/* @@@ label Error TypeError: Property 'goo1' does not exist on type 'export' */ +/* @@@ label Error Semantic error ESE0087: Property 'goo1' does not exist on type 'export' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets index b7ea1a2d11..b7950c38a9 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets @@ -19,4 +19,4 @@ function main(): void { all./* @@ label */DefaultExportedFunc(); } -/* @@@ label Error TypeError: Property 'DefaultExportedFunc' does not exist on type 'default_export' */ +/* @@@ label Error Semantic error ESE0087: Property 'DefaultExportedFunc' does not exist on type 'default_export' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets index 6e328b67b4..ff711bb415 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets @@ -19,5 +19,5 @@ import * as Test from "import_tests/packages"; let x = foo(dbl /* double based signature */); -/* @@? 20:9 Error TypeError: Unresolved reference foo */ -/* @@? 20:9 Error TypeError: This expression is not callable. */ +/* @@? 20:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 20:9 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets index c2552fb47d..a0a945ecbe 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets @@ -17,5 +17,5 @@ import * as Test from "import_tests/packages"; function main() { Test() } -/* @@? 18:19 Error TypeError: Namespace style identifier Test is not callable. */ -/* @@? 18:19 Error TypeError: No static $_invoke method and static $_instantiate method in Test. Test() is not allowed. */ +/* @@? 18:19 Error Semantic error ESE0295: Namespace style identifier Test is not callable. */ +/* @@? 18:19 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Test. Test() is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets b/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets index 68fe6856ce..c1ceb9ff64 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets @@ -15,4 +15,4 @@ import * as all from /* @@ label */"./folderWithoutIndexOrPackage" -/* @@@ label Error TypeError: Cannot find index.[ets|ts] or package module in folder: ./folderWithoutIndexOrPackage */ +/* @@@ label Error Semantic error ESE0359: Cannot find index.[ets|ts] or package module in folder: ./folderWithoutIndexOrPackage */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets index 47185e975b..55b28b53ef 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets @@ -18,5 +18,4 @@ import {foo, flt} from "import_tests/packages"; // Throw error: "dbl" is not visible. let x = foo(dbl); -/* @@? 19:13 Error TypeError: Unresolved reference dbl */ - +/* @@? 19:13 Error Semantic error ESE0143: Unresolved reference dbl */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets index 5b2415ea07..0bd3d39ebc 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets @@ -15,4 +15,4 @@ import {DefaultExportedFunc} from /* @@ label */"import_tests/modules/default_export"; -/* @@@ label Error TypeError: Use the default import syntax to import a default exported element */ +/* @@@ label Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets index dede176fcc..53c9826a53 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets @@ -18,5 +18,5 @@ import {foo as Foo, dbl} from "import_tests/packages"; // Throw error: Foo qualifier should be used instead of foo. let x = foo(dbl); -/* @@? 19:9 Error TypeError: Unresolved reference foo */ -/* @@? 19:9 Error TypeError: This expression is not callable. */ +/* @@? 19:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 19:9 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets index cf73cdfa0c..ce5022f585 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets @@ -18,4 +18,4 @@ import {flt as floatingPointNumber} from /* @@ label */"import_tests/packages"; // Throw error because floatingPointNumber is for multiple value. -/* @@@ label Error TypeError: Variable 'floatingPointNumber' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Variable 'floatingPointNumber' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets index da0bfebf30..ec8609df5b 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets @@ -20,4 +20,4 @@ function foo(): int { } //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Variable 'foo' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets index f5fcd7f50f..cdac6e4150 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets @@ -18,4 +18,4 @@ import {bar} from /* @@ label */"./check_exported_3"; let bar: int = 1; //Throw error: Function already declared. -/* @@@ label Error TypeError: Function 'bar' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Function 'bar' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets index df4213856b..457aae8205 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets @@ -20,4 +20,4 @@ function Point(): int { } //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Class 'Point' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets index 071330db39..15ea5eff31 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets @@ -17,4 +17,4 @@ import * as all from "import_tests/packages/var-duplication"; // Throw error: "a" is defined twice in this package. -/* @@? subpackage_module_2.ets:19:12 Error TypeError: Variable 'a' has already been declared. */ +/* @@? subpackage_module_2.ets:19:12 Error Semantic error ESE0351: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets index 98e9319e03..fcc59f60cc 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets @@ -18,4 +18,4 @@ import {foo} from /* @@ label */"import_tests/packages/subpackage-1"; let foo: int = 1; //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Variable 'foo' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets index 9e117d9e1a..993dce0a01 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets @@ -20,4 +20,4 @@ function bar(): int { } //Throw error: Function already declared. -/* @@? check_exported_3.ets:16:8 Error TypeError: Function bar is already declared. */ +/* @@? check_exported_3.ets:16:8 Error Semantic error ESE0130: Function bar is already declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets index 294064cf7a..d9b2421715 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets @@ -18,4 +18,4 @@ import {Point} from /* @@ label */"import_tests/relative_import/Point"; class Point {} //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'Point' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets index dbae3e3415..00dee73f5f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets @@ -18,4 +18,4 @@ import {foo} from /* @@ label */"import_tests/packages/subpackage-1"; class foo{}; //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Variable 'foo' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets index c4964db7f3..631d58239a 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets @@ -18,4 +18,4 @@ import {bar} from /* @@ label */"./check_exported_3"; class bar{}; //Throw error: Function already declared. -/* @@@ label Error TypeError: Function 'bar' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Function 'bar' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets index 495c4ff776..1232981198 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets @@ -18,4 +18,4 @@ import {Point} from /* @@ label */"import_tests/relative_import/Point"; let Point: int = 1; //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Class 'Point' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets index 31857cd3ba..636570a736 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets @@ -20,4 +20,4 @@ import {foo_2 as foo} from "./imported_module_2.ets" function main() : void {} // NOTE(kaskov): Add more precise error, when will be suggestions -/* @@? imported_module_2.ets:27:8 Error TypeError: Function foo_1 is already declared. */ +/* @@? imported_module_2.ets:27:8 Error Semantic error ESE0130: Function foo_1 is already declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets index 80cf35a016..5bc7c958c7 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets @@ -19,4 +19,4 @@ import {flt as floatingPointNumber} from /* @@ label */"./imported_module_2.ets" function main() {} -/* @@@ label Error TypeError: Variable 'floatingPointNumber' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Variable 'floatingPointNumber' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets index a2bd7160fe..f4e1dc7ae2 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets @@ -19,4 +19,4 @@ import {C as B} from /* @@ label */"./imported_module_2.ets"; function main() : void {} -/* @@@ label Error TypeError: Class 'B' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'B' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets index 5f9b89e924..57e83f03aa 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets @@ -18,4 +18,4 @@ import {foo_1} from /* @@ label */"./imported_module_1.ets" function main() : void {} -/* @@@ label Error TypeError: Function 'foo_1' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Function 'foo_1' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets index de20e6e0ff..bb7540a984 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets @@ -18,4 +18,4 @@ import /* @@ label */* as b from "./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Variable 'b' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'b' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets index 48c5443552..4e5c46c9d0 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets @@ -20,4 +20,4 @@ import * as c from "./imported_module_2.ets"; function main() { console.log(c); } -/* @@@ label Error TypeError: Variable 'c' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Variable 'c' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets index 0424ee2b69..c941bc64ac 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets @@ -18,4 +18,4 @@ import type {CType as A} from /* @@ label */"./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Class 'A' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'A' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets index fdd98363e9..579a2cf4b8 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets @@ -18,4 +18,4 @@ import type {CType as B} from /* @@ label */"./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Class 'B' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'B' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets index dc956c6f39..1e195784eb 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets @@ -15,9 +15,9 @@ import {foo flt} from "import_tests/packages"; -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 16:16 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:18 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 16:18 Error TypeError: Unresolved reference from */ -/* @@? 16:23 Error SyntaxError: Unexpected token 'import_tests/packages'. */ +/* @@? 16:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:13 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:16 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@? 16:18 Error Semantic error ESE0143: Unresolved reference from */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token 'import_tests/packages'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets index eec369a4bf..2fed9ee209 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets @@ -24,4 +24,4 @@ export class InImport { // used to give wrong output: // TypeError: Type '"InImport"' cannot be assigned to type 'int' [export_and_import_class.ets:21:1] -/* @@@ label Error TypeError: Type '"InImport"' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '"InImport"' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets index c22d229514..e7c0b16130 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets @@ -25,4 +25,4 @@ export function fooImport() { // used to give wrong output: // TypeError: Type 'int' cannot be assigned to type 'String' [export_and_import_top_level.ets:21:1] -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets index 01ce457289..4ace92bd92 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets @@ -15,4 +15,4 @@ export default * /* @@ err */from "./for_re-export" -/* @@@ err Error SyntaxError: Cannot use 'export default' in re-export context */ +/* @@@ err Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets index 51575a695b..63b2598927 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets @@ -15,4 +15,4 @@ export default {foo} /* @@ err */from "./for_re-export" -/* @@@ err Error SyntaxError: Cannot use 'export default' in re-export context */ +/* @@@ err Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets index 1a88cd181c..c386fb806e 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets @@ -15,4 +15,4 @@ import * /* @@ label */from "./module" -/* @@@ label Error SyntaxError: Unexpected token, expected 'as'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'as'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets index c61d893c63..7dd1bae0f5 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets @@ -15,9 +15,9 @@ import * \u0061s something from "./module" -/* @@? 16:10 Error SyntaxError: Escape sequences are not allowed in keyword. */ -/* @@? 16:10 Error SyntaxError: Escape sequences are not allowed in 'as' keyword.*/ -/* @@? 16:10 Error SyntaxError: Expected 'as', got 'identification literal'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 16:28 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:33 Error SyntaxError: Unexpected token './module'. */ +/* @@? 16:10 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@? 16:10 Error Syntax error ESY0108: Escape sequences are not allowed in 'as' keyword. */ +/* @@? 16:10 Error Syntax error ESY0230: Expected 'as', got 'identification literal'. */ +/* @@? 16:18 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:28 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:33 Error Syntax error ESY0227: Unexpected token './module'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets index a70cf173d9..da8aba6c5d 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets @@ -16,4 +16,4 @@ export default function TestFunc(): void {} export default /* @@ label */function TestFuncToo(): void {} -/* @@@ label Error TypeError: Only one default export is allowed in a module */ +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets index 6f77ae0896..34ee30e44a 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets @@ -15,4 +15,4 @@ export default let a = 2, /* @@ label */b = 3; -/* @@@ label Error TypeError: Only one default export is allowed in a module */ +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets index fab0916b77..7f863a2280 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets @@ -17,5 +17,4 @@ export let a: String = "SubpackageA"; -/* @@? 1:1 Error SyntaxError: Files 'subpackage_module_1' and 'subpackage_module_2' are in the same folder, but have different package names. */ - +/* @@? 1:1 Error Syntax error ESY0002: Files 'subpackage_module_1' and 'subpackage_module_2' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets index 8576819f85..21d15b6266 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets @@ -17,4 +17,4 @@ export let b: String = "SubpackageA"; -/* @@? 1:1 Error SyntaxError: Files 'subpackage_module_2' and 'subpackage_module_1' are in the same folder, but have different package names. */ +/* @@? 1:1 Error Syntax error ESY0002: Files 'subpackage_module_2' and 'subpackage_module_1' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets index 4f8dbcf52f..1a30f36116 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets @@ -17,5 +17,5 @@ import {/* @@ label */A} from "./type" let aa:A; -/* @@@ label Error TypeError: Cannot find imported element 'A' */ -/* @@? 18:8 Error TypeError: Cannot find type 'A'. */ +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'A' */ +/* @@? 18:8 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets index 2a63140b10..8544706ffe 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets @@ -17,4 +17,4 @@ import * as B from "./type" let aa:B./* @@ label */A; -/* @@@ label Error TypeError: 'A' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'A' type does not exist. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets b/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets index ea9cf69480..52c15929c1 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets @@ -19,4 +19,4 @@ class TestClass {} export {foo} export type {TestClass as foo} -/* @@? 20:14 Error SyntaxError: Cannot export two different names with the same export alias name 'foo'. */ +/* @@? 20:14 Error Syntax error ESY0344: Cannot export two different names with the same export alias name 'foo'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets index 5d987046c3..7059268b06 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets @@ -19,4 +19,4 @@ class TestClass { /* @@ err */import {testFunc} from "./export" -/* @@@ err Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@@ err Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets index 5298672ca7..f28e706104 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets @@ -17,4 +17,4 @@ function main(): void { /* @@ err */import {testFunc} from "./export" } -/* @@@ err Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@@ err Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets index 76b9878b1c..6c2eccf3ce 100644 --- a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets +++ b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets @@ -16,6 +16,6 @@ let a = 1; a/* @@ label */~/* @@ label2 */!/* @@ label3 */; } -/* @@@ label Error SyntaxError: Unexpected token '~'. */ -/* @@@ label2 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label3 Error SyntaxError: Unexpected token ';'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '~'. */ +/* @@@ label2 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ';'. */ diff --git a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets index 8ff53d347d..7eb29c586e 100644 --- a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets +++ b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets @@ -17,5 +17,5 @@ a!++; } - /* @@? 17:3 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ - /* @@? 17:3 Error TypeError: Type 'Double' cannot be assigned to type 'undefined' */ + /* @@? 17:3 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'undefined' */ +/* @@? 17:3 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets b/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets index c713e31333..b030bad86d 100644 --- a/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets +++ b/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets @@ -18,12 +18,12 @@ function main() { console.log(/* @@ label */a[0]) } -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/index_signature_error_1.ets b/ets2panda/test/ast/parser/ets/index_signature_error_1.ets index 1b35a8935c..ba5c406d55 100644 --- a/ets2panda/test/ast/parser/ets/index_signature_error_1.ets +++ b/ets2panda/test/ast/parser/ets/index_signature_error_1.ets @@ -22,6 +22,6 @@ function getStringArray(): StringArray { let myArray: StringArray = getStringArray() let secondItem = /* @@ label3 */myArray[1] -/* @@@ label1 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@@ label2 Error TypeError: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ -/* @@@ label3 Error TypeError: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label2 Error Semantic error ESE0091: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ +/* @@@ label3 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/index_signature_error_2.ets b/ets2panda/test/ast/parser/ets/index_signature_error_2.ets index 8eee907561..18e33ba991 100644 --- a/ets2panda/test/ast/parser/ets/index_signature_error_2.ets +++ b/ets2panda/test/ast/parser/ets/index_signature_error_2.ets @@ -22,6 +22,6 @@ function getStringArray(): StringArray { let myArray: StringArray = getStringArray() let secondItem = /* @@ label3 */myArray[1] -/* @@@ label1 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@@ label2 Error TypeError: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ -/* @@@ label3 Error TypeError: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label2 Error Semantic error ESE0091: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ +/* @@@ label3 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets index ac7b4b0c7c..75e4ef7bd5 100644 --- a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets +++ b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets @@ -18,4 +18,4 @@ class B extends A {} class C extends B {} class D extends C {} -/* @@@ label Error TypeError: Cyclic inheritance involving A. */ +/* @@@ label Error Semantic error ESE0310: Cyclic inheritance involving A. */ diff --git a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets index cb4b9dcc7b..ad3af703c6 100644 --- a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets +++ b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets @@ -22,6 +22,6 @@ let c = X instanceof Object let d = X instanceof X let f = B instanceof Object -/* @@? 21:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ -/* @@? 22:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ -/* @@? 23:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 21:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 22:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 23:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ diff --git a/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets b/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets index 3e2f65ca14..220a1dd7d9 100644 --- a/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets +++ b/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets @@ -24,4 +24,4 @@ function main() b instanceof /* @@ label */a } -/* @@@ label Error TypeError: Cannot find type 'a'. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'a'. */ diff --git a/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets b/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets index a9c83cba57..0a70e719ba 100644 --- a/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets +++ b/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets @@ -19,4 +19,4 @@ function main(): void { /* @@ label */new cls[10]; } -/* @@@ label Error TypeError: Cannot use array creation expression with abstract classes and interfaces. */ +/* @@@ label Error Semantic error ESE0050: Cannot use array creation expression with abstract classes and interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets b/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets index d933bf947b..e4449434f5 100644 --- a/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets +++ b/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets @@ -19,4 +19,4 @@ function main(): void { /* @@ label */new iface[5]; } -/* @@@ label Error TypeError: Cannot use array creation expression with abstract classes and interfaces. */ +/* @@@ label Error Semantic error ESE0050: Cannot use array creation expression with abstract classes and interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interface-override-function.ets b/ets2panda/test/ast/parser/ets/interface-override-function.ets index f874ad76b5..2fdd4b13b3 100644 --- a/ets2panda/test/ast/parser/ets/interface-override-function.ets +++ b/ets2panda/test/ast/parser/ets/interface-override-function.ets @@ -26,4 +26,4 @@ interface J extends K { } -/* @@@ label Error SyntaxError: 'override' modifier cannot appear in interfaces. */ +/* @@@ label Error Syntax error ESY0189: 'override' modifier cannot appear in interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interface.ets b/ets2panda/test/ast/parser/ets/interface.ets index 2821c3c019..31abb0221e 100644 --- a/ets2panda/test/ast/parser/ets/interface.ets +++ b/ets2panda/test/ast/parser/ets/interface.ets @@ -17,4 +17,4 @@ interface G {} -/* @@@ label Error TypeError: Cannot find type 'FunctioN'. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'FunctioN'. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets index 4f1a56deb1..f60d6c08f2 100644 --- a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets +++ b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets @@ -17,4 +17,4 @@ interface Vehicle { private getHorsePower/* @@ label */(rpm: int, torque: int): int } -/* @@@ label Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets index cce7b4d638..dbf6f957b4 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets @@ -28,4 +28,4 @@ interface B { interface C extends A, B { } -/* @@? 28:1 Error TypeError: Method 'foo' is declared in A and B interfaces. */ +/* @@? 28:1 Error Semantic error ESE0187: Method 'foo' is declared in A and B interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets index 2bbca592d6..0a6f09edfb 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets @@ -33,6 +33,6 @@ interface C { interface D extends A, B, C {} -/* @@? 34:1 Error TypeError: Method 'foo' is declared in A and B interfaces. */ -/* @@? 34:1 Error TypeError: Method 'foo' is declared in A and C interfaces. */ -/* @@? 34:1 Error TypeError: Method 'foo' is declared in B and C interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in A and B interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in A and C interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in B and C interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets index fd964d2e8d..e3dd25139a 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets @@ -17,5 +17,5 @@ interface I { /* @@ label */native foo/* @@ label1 */() } -/* @@@ label Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label1 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets index ec065fd50e..9d1482f008 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets @@ -17,6 +17,6 @@ interface I { private private foo() } -/* @@? 17:13 Error SyntaxError: Identifier expected. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:24 Error SyntaxError: Private interface methods must have body. */ +/* @@? 17:13 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:24 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets index 116bd826fb..c6cd6b38e4 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets @@ -17,7 +17,7 @@ interface I { private static foo() } -/* @@? 17:13 Error SyntaxError: Identifier expected. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:23 Error SyntaxError: Private interface methods must have body. */ +/* @@? 17:13 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:13 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:23 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets index 39dcced0fd..2aca2dcff9 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets @@ -17,8 +17,8 @@ interface I { readonly foo() } -/* @@? 17:17 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:18 Error SyntaxError: Invalid Type. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ \ No newline at end of file +/* @@? 17:17 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:18 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets index 098caf8bb4..c38af688bd 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets @@ -17,5 +17,5 @@ interface I { /* @@ label */static foo/* @@ label1 */() } -/* @@@ label Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label1 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets index 53111d02a4..a39b1948b2 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets @@ -17,4 +17,4 @@ declare interface A { (index :ee ): string } -/* @@? 17:13 Error TypeError: Cannot find type 'ee'. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0371: Cannot find type 'ee'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets index fc59862c29..be79ea2711 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets @@ -16,4 +16,4 @@ declare interface A { (arg : string: string } - /* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ \ No newline at end of file + /* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets index 60f624907e..9c57360e5d 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets @@ -19,4 +19,4 @@ declare interface A { [index : number]: stringdd } -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets index 6789f5f098..d91cc86faa 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets @@ -17,15 +17,15 @@ declare interface A { [index : string]: string } -/* @@? 17:14 Error SyntaxError: Index type must be number in index signature. */ -/* @@? 17:14 Error SyntaxError: ] expected in index signature. */ -/* @@? 17:20 Error SyntaxError: An index signature must have a type annotation. */ -/* @@? 17:20 Error SyntaxError: Expected ':', got ']'. */ -/* @@? 17:20 Error SyntaxError: Invalid Type. */ -/* @@? 17:20 Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:21 Error SyntaxError: Identifier expected. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ +/* @@? 17:14 Error Syntax error ESY0018: Index type must be number in index signature. */ +/* @@? 17:14 Error Syntax error ESY0019: ] expected in index signature. */ +/* @@? 17:20 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@? 17:20 Error Syntax error ESY0230: Expected ':', got ']'. */ +/* @@? 17:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:20 Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ +/* @@? 17:20 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:20 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:21 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets index a186fd0f70..7586ceb433 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets @@ -16,4 +16,4 @@ declare interface IterableInterface { [Symbol.iterator]: Iterable } -/* @@? 17:22 Error TypeError: Type 'Iterable' is generic but type argument were not provided. */ +/* @@? 17:22 Error Semantic error ESE0170: Type 'Iterable' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/interface_extends_class.ets b/ets2panda/test/ast/parser/ets/interface_extends_class.ets index 6e88716f0c..c98bf450f8 100644 --- a/ets2panda/test/ast/parser/ets/interface_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/interface_extends_class.ets @@ -17,4 +17,4 @@ class A {} interface BInterface extends /* @@ label */A {} -/* @@@ label Error TypeError: Interfaces cannot extend classes, only other interfaces. */ +/* @@@ label Error Semantic error ESE0378: Interfaces cannot extend classes, only other interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interface_instantiation.ets b/ets2panda/test/ast/parser/ets/interface_instantiation.ets index baa3579c4d..919b29934c 100644 --- a/ets2panda/test/ast/parser/ets/interface_instantiation.ets +++ b/ets2panda/test/ast/parser/ets/interface_instantiation.ets @@ -16,4 +16,4 @@ interface Base {} let b = /* @@ label */new Base -/* @@@ label Error TypeError: Base is an interface therefore cannot be instantiated. */ +/* @@@ label Error Semantic error ESE0275: Base is an interface therefore cannot be instantiated. */ diff --git a/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets b/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets index af859301bf..359c01bc42 100644 --- a/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets +++ b/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets @@ -18,5 +18,5 @@ interface A { f2!?:number } -/* @@? 17:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 18:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ +/* @@? 17:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 18:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ diff --git a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets index d96988046d..6c42078eb7 100644 --- a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets +++ b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets @@ -22,7 +22,7 @@ function main() } -/* @@? 17:14 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:17 Error SyntaxError: Identifier expected. */ +/* @@? 17:14 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:16 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:17 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets b/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets index 050fbd6b1c..139d249177 100644 --- a/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets @@ -32,39 +32,39 @@ class A implements I { function mdin() { let a = new A(); ass -/* @@? 16:4 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:4 Error TypeError: Unresolved reference Geit */ -/* @@? 16:9 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:2 Error TypeError: Unresolved reference t */ -/* @@? 17:4 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error TypeError: Unresolved reference name */ -/* @@? 17:11 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:5 Error SyntaxError: Identifier expected. */ -/* @@? 20:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 20:14 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 20:16 Error SyntaxError: Identifier expected. */ -/* @@? 20:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 20:16 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 21:1 Error SyntaxError: Identifier expected. */ -/* @@? 22:1 Error TypeError: Class literal is not yet supported. */ -/* @@? 22:1 Error TypeError: Cannot find type 'inter'. */ -/* @@? 24:7 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 24:7 Error TypeError: Unresolved reference A */ -/* @@? 24:9 Error SyntaxError: Unexpected token 'implements'. */ -/* @@? 24:20 Error SyntaxError: Unexpected token 'I'. */ -/* @@? 24:20 Error TypeError: Unresolved reference I */ -/* @@? 24:22 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:4 Error TypeError: Unresolved reference reanstructor */ -/* @@? 26:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 26:19 Error SyntaxError: Unexpected token '�ls'. */ -/* @@? 27:5 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 27:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 28:5 Error SyntaxError: Hard keyword 'constructor' cannot be used as identifier */ -/* @@? 28:5 Error SyntaxError: Identifier expected, got 'constructor'. */ -/* @@? 28:16 Error SyntaxError: Invalid annotation name. */ -/* @@? 28:19 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 29:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:2 Error SyntaxError: Unexpected token '*'. */ -/* @@? 32:1 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 71:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:4 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:4 Error Semantic error ESE0143: Unresolved reference Geit */ +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:2 Error Semantic error ESE0143: Unresolved reference t */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference name */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 20:14 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 20:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 20:16 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 21:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 22:1 Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@? 22:1 Error Semantic error ESE0371: Cannot find type 'inter'. */ +/* @@? 24:7 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 24:7 Error Semantic error ESE0143: Unresolved reference A */ +/* @@? 24:9 Error Syntax error ESY0227: Unexpected token 'implements'. */ +/* @@? 24:20 Error Syntax error ESY0227: Unexpected token 'I'. */ +/* @@? 24:20 Error Semantic error ESE0143: Unresolved reference I */ +/* @@? 24:22 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:4 Error Semantic error ESE0143: Unresolved reference reanstructor */ +/* @@? 26:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 26:19 Error Syntax error ESY0227: Unexpected token '�ls'. */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 27:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 28:5 Error Syntax error ESY0316: Hard keyword 'constructor' cannot be used as identifier */ +/* @@? 28:5 Error Syntax error ESY0224: Identifier expected, got 'constructor'. */ +/* @@? 28:16 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 28:19 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 29:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:2 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 32:1 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 71:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets b/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets index b2f0dcd090..68908e099d 100644 --- a/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets +++ b/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets @@ -17,8 +17,8 @@ interface I { : boolean } -/* @@? 17:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:7 Error SyntaxError: Identifier expected. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:7 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:7 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/interface_private_function_1.ets b/ets2panda/test/ast/parser/ets/interface_private_function_1.ets index 237953a6ba..e0292c2dbd 100644 --- a/ets2panda/test/ast/parser/ets/interface_private_function_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_private_function_1.ets @@ -34,5 +34,5 @@ function main(): void { i.xyz(); } -/* @@? 34:5 Error TypeError: Signature xyz(): Int is not visible here. */ -/* @@? 34:5 Error TypeError: No matching call signature */ +/* @@? 34:5 Error Semantic error ESE0139: Signature xyz(): Int is not visible here. */ +/* @@? 34:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets b/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets index 4eb37bbc78..db8fd71465 100644 --- a/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets +++ b/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets @@ -17,4 +17,4 @@ interface A{ static f!:string } -/* @@? 17:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/parser/ets/interface_with_different_type.ets b/ets2panda/test/ast/parser/ets/interface_with_different_type.ets index 6280957694..74dab1748b 100644 --- a/ets2panda/test/ast/parser/ets/interface_with_different_type.ets +++ b/ets2panda/test/ast/parser/ets/interface_with_different_type.ets @@ -34,4 +34,4 @@ function main() { let d = new Derived } -/* @@@ label Error TypeError: Cannot inherit from interface Interface because field instance_field is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface Interface because field instance_field is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/parser/ets/interfaces2.ets b/ets2panda/test/ast/parser/ets/interfaces2.ets index fe80085b64..01ad972e08 100644 --- a/ets2panda/test/ast/parser/ets/interfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaces2.ets @@ -17,4 +17,4 @@ interface K {} interface J /* @@ label */implements K {} -/* @@@ label Error SyntaxError: Interface declaration cannot have 'implements' clause. */ +/* @@@ label Error Syntax error ESY0177: Interface declaration cannot have 'implements' clause. */ diff --git a/ets2panda/test/ast/parser/ets/interfaces3.ets b/ets2panda/test/ast/parser/ets/interfaces3.ets index c8fdf3fb55..777d500d09 100644 --- a/ets2panda/test/ast/parser/ets/interfaces3.ets +++ b/ets2panda/test/ast/parser/ets/interfaces3.ets @@ -17,6 +17,6 @@ interface K {} interface J impleents K {} -/* @@? 18:13 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 18:25 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:26 Error SyntaxError: Invalid Type. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 18:25 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:26 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/invalidEnums.ets b/ets2panda/test/ast/parser/ets/invalidEnums.ets index 82a8b21390..6d55168505 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums.ets @@ -58,19 +58,19 @@ enum MissingLeftBrace } -/* @@? 16:5 Error SyntaxError: Variable declaration expected. */ -/* @@? 22:22 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 32:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 32:1 Error SyntaxError: Unexpected token ']'. */ -/* @@? 37:10 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 38:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 40:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 43:10 Error SyntaxError: Unexpected token '?'. */ -/* @@? 43:10 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 48:3 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 48:3 Error TypeError: Unresolved reference Member2 */ -/* @@? 49:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 56:3 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 56:10 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 57:3 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 58:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:5 Error Syntax error ESY0126: Variable declaration expected. */ +/* @@? 22:22 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 32:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 37:10 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 38:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 40:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 43:10 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 43:10 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 48:3 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 48:3 Error Semantic error ESE0143: Unresolved reference Member2 */ +/* @@? 49:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 56:3 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 56:10 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 57:3 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 58:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/invalidEnums1.ets b/ets2panda/test/ast/parser/ets/invalidEnums1.ets index 2021d1a65f..90f0150714 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums1.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums1.ets @@ -26,7 +26,7 @@ enum EStrNotInit { } -/* @@? 18:15 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:12 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 20:12 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 25:9 Error SyntaxError: All items of string-type enumeration should be explicitly initialized. */ +/* @@? 18:15 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:12 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 20:12 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 25:9 Error Syntax error ESY0276: All items of string-type enumeration should be explicitly initialized. */ diff --git a/ets2panda/test/ast/parser/ets/invalidTypes.ets b/ets2panda/test/ast/parser/ets/invalidTypes.ets index ebd93a9b39..cd384cffbe 100644 --- a/ets2panda/test/ast/parser/ets/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/invalidTypes.ets @@ -37,40 +37,40 @@ class Class2 { let var6: [a0: , a1: ]; -/* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */ -/* @@? 24:12 Error SyntaxError: Invalid Type. */ -/* @@? 24:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 24:12 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:25 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:28 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:36 Error SyntaxError: Unexpected token ']'. */ -/* @@? 26:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 26:12 Error SyntaxError: Unexpected token '...'. */ -/* @@? 26:12 Error SyntaxError: Invalid Type. */ -/* @@? 26:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:25 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 26:25 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 26:31 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token '?'. */ -/* @@? 28:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 30:20 Error SyntaxError: Unexpected token '...'. */ -/* @@? 30:23 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 30:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 32:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 32:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:21 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 38:12 Error TypeError: Cannot find type 'a0'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:18 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 38:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:22 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:23 Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ +/* @@? 24:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 24:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 24:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:25 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:28 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 26:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 26:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 26:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 26:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 26:23 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:25 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 26:25 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 26:31 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 28:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 30:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 30:20 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 30:23 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 30:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 32:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 32:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 32:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:21 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 38:12 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 38:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:18 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 38:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static.ets b/ets2panda/test/ast/parser/ets/invalid_access_static.ets index 906e6cc94c..512a191f92 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static.ets @@ -20,4 +20,4 @@ class G { let a = new G(); a./* @@ label */y++; -/* @@@ label Error TypeError: 'y' is a static property of 'G' */ +/* @@@ label Error Semantic error ESE0207: 'y' is a static property of 'G' */ diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets index 18ff34be45..0ca0161eab 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets @@ -22,4 +22,4 @@ class G { let a = new G(); a./* @@ label */y(); -/* @@@ label Error TypeError: 'y' is a static property of 'G' */ +/* @@@ label Error Semantic error ESE0207: 'y' is a static property of 'G' */ diff --git a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets index ce1345d026..0ab2bd7645 100644 --- a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets +++ b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets @@ -15,21 +15,21 @@ @ q.M function i ( this : ( this : @ e ( ) [ ] ) => ( @ V ( ) "" ) ) { } -/* @@? 16:3 Error TypeError: Cannot find type 'q'. */ -/* @@? 16:5 Error TypeError: 'M' is not an annotation. */ -/* @@? 16:5 Error TypeError: 'M' type does not exist. */ -/* @@? 16:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:29 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 16:40 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 16:44 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:46 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:46 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:46 Error SyntaxError: Invalid Type. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:50 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:59 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 16:61 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:63 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:68 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:70 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:3 Error Semantic error ESE0371: Cannot find type 'q'. */ +/* @@? 16:5 Error Semantic error ESE0067: 'M' is not an annotation. */ +/* @@? 16:5 Error Semantic error ESE0070: 'M' type does not exist. */ +/* @@? 16:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:29 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 16:40 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 16:44 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:44 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:46 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:46 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:50 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:59 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 16:61 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:63 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:68 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:70 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets index 826c56c076..0aba955881 100644 --- a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets +++ b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets @@ -15,5 +15,5 @@ const f = ({a: 1}) => {} -/* @@? 16:20 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:20 Error SyntaxError: Invalid destructuring assignment target. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:20 Error Syntax error ESY0049: Invalid destructuring assignment target. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets index fc163f36e8..2d5701ca39 100644 --- a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets +++ b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets @@ -23,5 +23,5 @@ function foo(entry: I) { }); } -/* @@@ label1 Error TypeError: Invalid lambda parameter. Expected: 'identifier(: type)?', 'identifier?(: type)?' or '...identifier(: type)?'. */ -/* @@@ label2 Error SyntaxError: Unexpected token '=>'. */ +/* @@@ label1 Error Semantic error ESE0395: Invalid lambda parameter. Expected: 'identifier(: type)?', 'identifier?(: type)?' or '...identifier(: type)?'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets index a7b52b8558..a56e7cef8d 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets @@ -18,11 +18,11 @@ let obj: Record = { [this.viewModel.ads] : 123 } -/* @@? 18:5 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 18:11 Error TypeError: Property 'viewModel' does not exist on type 'Error' */ -/* @@? 18:24 Error SyntaxError: Unexpected token. */ -/* @@? 18:26 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:28 Error SyntaxError: Unexpected token '123'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:6 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:6 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 18:11 Error Semantic error ESE0087: Property 'viewModel' does not exist on type 'Error' */ +/* @@? 18:24 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:26 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:28 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets index 4929e16649..b1da989e99 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets @@ -36,6 +36,6 @@ let a: A = /* @@ label1 */{ } } -/* @@@ label1 Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label2 Error SyntaxError: Object pattern can't contain methods. */ -/* @@@ label3 Error SyntaxError: Object pattern can't contain methods. */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label2 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@@ label3 Error Syntax error ESY0062: Object pattern can't contain methods. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets index 2eba0019b6..7f45971eea 100644 --- a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets +++ b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets @@ -17,11 +17,5 @@ interface I { J* @@? } -/* @@? 17:2 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:4 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 17:4 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:4 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:6 Error SyntaxError: Identifier expected. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:2 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 17:2 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets b/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets index bbe7b44619..0ff2b2a379 100644 --- a/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets +++ b/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets @@ -23,8 +23,8 @@ type Container = T | { [i: string]: Container }; declare namespace Test1 { } -/* @@? 21:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:28 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 21:49 Error SyntaxError: Unexpected token '<'. */ -/* @@? 21:51 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:51 Error SyntaxError: Unexpected token '>'. */ +/* @@? 21:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:28 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 21:49 Error Syntax error ESY0227: Unexpected token '<'. */ +/* @@? 21:51 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:51 Error Syntax error ESY0227: Unexpected token '>'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_type.ets b/ets2panda/test/ast/parser/ets/invalid_type.ets index 36b08c0491..4fa2b6df55 100644 --- a/ets2panda/test/ast/parser/ets/invalid_type.ets +++ b/ets2panda/test/ast/parser/ets/invalid_type.ets @@ -17,6 +17,6 @@ class Function extends Intl.DateTimeFormat{ let RegExp = Intl.PluralRules } -/* @@? 1:3 Error TypeError: Variable 'Function' is already defined with different type. */ -/* @@? 17:1 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 17:19 Error TypeError: Property 'PluralRules' does not exist on type 'Intl' */ +/* @@? 1:3 Error Semantic error ESE0350: Variable 'Function' is already defined with different type. */ +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 17:19 Error Semantic error ESE0087: Property 'PluralRules' does not exist on type 'Intl' */ diff --git a/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets b/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets index 814b8ad67d..930d366c64 100644 --- a/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets +++ b/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets @@ -20,5 +20,5 @@ flags: [dynamic-ast] type Point = { x: number; y: number }; type AxeX = Point['x']; -/* @@? 20:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:22 Error SyntaxError: Indexed access types are not supported, use type name instead! */ \ No newline at end of file +/* @@? 20:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:22 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ diff --git a/ets2panda/test/ast/parser/ets/keyof_annotation.ets b/ets2panda/test/ast/parser/ets/keyof_annotation.ets index 4e64a018dd..31f3833fcd 100644 --- a/ets2panda/test/ast/parser/ets/keyof_annotation.ets +++ b/ets2panda/test/ast/parser/ets/keyof_annotation.ets @@ -41,9 +41,9 @@ function main():void{ let y6:keyof B = /* @@ label6 */100; } -/* @@@ label1 Error TypeError: Type '"other field"' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label2 Error TypeError: Type '"other method"' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label3 Error TypeError: Type 'Int' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label4 Error TypeError: Type '"other field"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ -/* @@@ label5 Error TypeError: Type '"other method"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ -/* @@@ label6 Error TypeError: Type 'Int' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label1 Error Semantic error ESE0318: Type '"other field"' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"other method"' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label3 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label4 Error Semantic error ESE0318: Type '"other field"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label5 Error Semantic error ESE0318: Type '"other method"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label6 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets b/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets index d2585f5f7e..a2a7529da3 100644 --- a/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets +++ b/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets @@ -32,9 +32,8 @@ function main():void{ /* @@ label5 */ type keyofVoid = keyof void; } -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label4 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label5 Error SyntaxError: Illegal start of Type Alias expression. */ - +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label4 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 32:20 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ diff --git a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets index 682e4caa73..85aaa392bc 100644 --- a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets +++ b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets @@ -33,11 +33,11 @@ function main(): void { let x6: Array<"abcd" | keyofA | number | A> = new Array<"abcd" | keyofA | number | A>("abcd", "other field", "foo", 123, a); } -/* @@? 1:3 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 24:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 29:20 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 30:20 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 32:26 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 32:68 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 33:26 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 33:68 Error TypeError: Cannot find type 'keyofA'. */ +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 24:3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 29:20 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 30:20 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 32:26 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 32:68 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 33:26 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 33:68 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ diff --git a/ets2panda/test/ast/parser/ets/keyof_constraint.ets b/ets2panda/test/ast/parser/ets/keyof_constraint.ets index ed208c3516..ea952ddfcc 100644 --- a/ets2panda/test/ast/parser/ets/keyof_constraint.ets +++ b/ets2panda/test/ast/parser/ets/keyof_constraint.ets @@ -30,6 +30,6 @@ function main():void{ /* @@ label2 */getProperty(/* @@ label3 */"field12345"); } -/* @@@ label1 Error TypeError: Type argument '"field12345"' should be a subtype of '"method1"|"field1"|"field2"'-constraint */ -/* @@@ label2 Error TypeError: No matching call signature for getProperty("field12345") */ -/* @@@ label3 Error TypeError: Type '"field12345"' is not compatible with type '"method1"|"field1"|"field2"' at index 1 */ +/* @@@ label1 Error Semantic error ESE0228: Type argument '"field12345"' should be a subtype of '"method1"|"field1"|"field2"'-constraint */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for getProperty("field12345") */ +/* @@@ label3 Error Semantic error ESE0046: Type '"field12345"' is not compatible with type '"method1"|"field1"|"field2"' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/keyof_never.ets b/ets2panda/test/ast/parser/ets/keyof_never.ets index c8b75b81c4..729712dd2d 100644 --- a/ets2panda/test/ast/parser/ets/keyof_never.ets +++ b/ets2panda/test/ast/parser/ets/keyof_never.ets @@ -21,6 +21,6 @@ function main():void{ let a3:keyof A = /* @@ label3 */"method1" } -/* @@@ label1 Error TypeError: Type '""' cannot be assigned to type 'never' */ -/* @@@ label2 Error TypeError: Type '"field1"' cannot be assigned to type 'never' */ -/* @@@ label3 Error TypeError: Type '"method1"' cannot be assigned to type 'never' */ +/* @@@ label1 Error Semantic error ESE0318: Type '""' cannot be assigned to type 'never' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type 'never' */ +/* @@@ label3 Error Semantic error ESE0318: Type '"method1"' cannot be assigned to type 'never' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_parameter.ets index 5d3c9af641..09e91d1a15 100644 --- a/ets2panda/test/ast/parser/ets/keyof_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_parameter.ets @@ -28,9 +28,9 @@ function main():void{ /* @@ label5 */getProperty(a, /* @@ label6 */1); } -/* @@@ label1 Error TypeError: No matching call signature for getProperty(A, "other field") */ -/* @@@ label2 Error TypeError: Type '"other field"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ -/* @@@ label3 Error TypeError: No matching call signature for getProperty(A, "other method") */ -/* @@@ label4 Error TypeError: Type '"other method"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ -/* @@@ label5 Error TypeError: No matching call signature for getProperty(A, Int) */ -/* @@@ label6 Error TypeError: Type 'Int' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for getProperty(A, "other field") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"other field"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for getProperty(A, "other method") */ +/* @@@ label4 Error Semantic error ESE0046: Type '"other method"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label5 Error Semantic error ESE0127: No matching call signature for getProperty(A, Int) */ +/* @@@ label6 Error Semantic error ESE0046: Type 'Int' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets index 1f476b40e9..22b25deeb4 100644 --- a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets +++ b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets @@ -18,5 +18,5 @@ function main():void{ let c2:keyof Int = /* @@ label2 */"field1" } -/* @@@ label1 Error TypeError: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ -/* @@@ label2 Error TypeError: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ +/* @@@ label1 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets b/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets index 62d297cb8d..cf780b38ea 100644 --- a/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets +++ b/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets @@ -46,11 +46,11 @@ function main():void{ let c12:keyof B = /* @@ label8 */"bfoo3" } -/* @@@ label1 Error TypeError: Type '"field2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label2 Error TypeError: Type '"foo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label3 Error TypeError: Type '"field3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label4 Error TypeError: Type '"foo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label5 Error TypeError: Type '"bfield2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label6 Error TypeError: Type '"bfoo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label7 Error TypeError: Type '"bfield3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label8 Error TypeError: Type '"bfoo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label1 Error Semantic error ESE0318: Type '"field2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"foo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label3 Error Semantic error ESE0318: Type '"field3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label4 Error Semantic error ESE0318: Type '"foo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label5 Error Semantic error ESE0318: Type '"bfield2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label6 Error Semantic error ESE0318: Type '"bfoo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label7 Error Semantic error ESE0318: Type '"bfield3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label8 Error Semantic error ESE0318: Type '"bfoo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets index 22ef6be9d4..ab00854955 100644 --- a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets +++ b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets @@ -40,7 +40,7 @@ function main(): void { } -/* @@@ label1 Error TypeError: No matching call signature for foo("field2") */ -/* @@@ label2 Error TypeError: Type '"field2"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ -/* @@@ label3 Error TypeError: No matching call signature for foo("other field") */ -/* @@@ label4 Error TypeError: Type '"other field"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo("field2") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"field2"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo("other field") */ +/* @@@ label4 Error Semantic error ESE0046: Type '"other field"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets index e1b1f5fb3d..56e9f83d40 100644 --- a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets @@ -30,6 +30,6 @@ function main():void{ getProperty1(a,"method1") } -/* @@@ label1 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@@ label2 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@@ label3 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label1 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label2 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label3 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ diff --git a/ets2panda/test/ast/parser/ets/keyof_union.ets b/ets2panda/test/ast/parser/ets/keyof_union.ets index fa9733238e..97e707e4b3 100644 --- a/ets2panda/test/ast/parser/ets/keyof_union.ets +++ b/ets2panda/test/ast/parser/ets/keyof_union.ets @@ -33,9 +33,9 @@ function main():void{ getProperty("other field") } -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label3 Error TypeError: Cannot find type 'keyofUnion'. */ -/* @@@ label4 Error TypeError: Cannot find type 'keyofUnion'. */ -/* @@@ label5 Error TypeError: Cannot find type 'keyofA'. */ -/* @@@ label6 Error TypeError: Cannot find type 'keyofA'. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label3 Error Semantic error ESE0371: Cannot find type 'keyofUnion'. */ +/* @@@ label4 Error Semantic error ESE0371: Cannot find type 'keyofUnion'. */ +/* @@@ label5 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@@ label6 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ diff --git a/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets b/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets index 48cf3c4993..5853548b86 100644 --- a/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets +++ b/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets @@ -17,11 +17,11 @@ interface A { readonly static a = 45; } -/* @@? 17:2 Error SyntaxError: Identifier expected. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:20 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:22 Error SyntaxError: Invalid Type. */ -/* @@? 17:22 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:22 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:24 Error SyntaxError: Identifier expected. */ +/* @@? 17:2 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:11 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:20 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:22 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:22 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:24 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/labeled.ets b/ets2panda/test/ast/parser/ets/labeled.ets index c6e742534f..42063c4f61 100644 --- a/ets2panda/test/ast/parser/ets/labeled.ets +++ b/ets2panda/test/ast/parser/ets/labeled.ets @@ -23,10 +23,10 @@ class LabeledTest { } } -/* @@@ label Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label1 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label2 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label3 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label4 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label5 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label6 Error SyntaxError: Label must be followed by a loop statement. */ +/* @@@ label Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label1 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label2 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label3 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label4 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label5 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label6 Error Syntax error ESY0038: Label must be followed by a loop statement. */ diff --git a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets index 3847e046a2..5172cd102f 100644 --- a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets +++ b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets @@ -17,4 +17,4 @@ function labeledBlockTest01():void{ label1:/* @@ label */{} } -/* @@@ label Error SyntaxError: Label must be followed by a loop statement. */ +/* @@@ label Error Syntax error ESY0038: Label must be followed by a loop statement. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets b/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets index 03775c1d71..df5c3d25de 100644 --- a/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets +++ b/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets @@ -18,7 +18,6 @@ function main() : void{ ({}/* @@ label */=>z) /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets index 98215468ee..7af07157d4 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets @@ -20,7 +20,8 @@ function main(): void { foo((x(() => { } -/* @@? 20:10 Error TypeError: Unresolved reference x */ -/* @@? 27:1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 27:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 20:10 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 28:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 28:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets index 75cc29a912..7e1f1c9e89 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets @@ -25,4 +25,4 @@ function main(): void { } -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets index be682f7d2f..7022fc3363 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets @@ -34,6 +34,6 @@ function main(): void { }); } -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ -/* @@@ label1 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Boolean' */ -/* @@? 28:9 Error TypeError: Type '(x: Double, y: String) => Boolean' is not compatible with type '(x: Int, y: String) => Boolean' at index 1 */ +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 28:9 Error Semantic error ESE0046: Type '(x: Double, y: String) => Boolean' is not compatible with type '(x: Int, y: String) => Boolean' at index 1 */ +/* @@@ label1 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Boolean' */ diff --git a/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets b/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets index ef855e4383..2177735781 100644 --- a/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets @@ -19,19 +19,19 @@ let a = (... ( () => { } [] -/* @@? 16:9 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:10 Error SyntaxError: Unexpected token '...'. */ -/* @@? 16:10 Error TypeError: This expression is not callable. */ -/* @@? 18:5 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 18:7 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'async'. */ -/* @@? 18:15 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:18 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:3 Error TypeError: Can't resolve array type */ +/* @@? 16:9 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 16:10 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 18:5 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 18:7 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'async'. */ +/* @@? 18:15 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 18:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:16 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 18:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:3 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets index 8e962a727f..b2c41e2f4e 100644 --- a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets @@ -16,5 +16,5 @@ let lam :(x:string, y:int) => void = (a,b) =>{} lam(2, 3) -/* @@? 17:1 Error TypeError: No matching call signature for (Int, Int) */ -/* @@? 17:5 Error TypeError: Type 'Int' is not compatible with type 'String' at index 1 */ +/* @@? 17:1 Error Semantic error ESE0127: No matching call signature for (Int, Int) */ +/* @@? 17:5 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets index 2ccb389e1e..1203ab86ac 100644 --- a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets @@ -17,4 +17,4 @@ function foo(func: (arg1:T, args2:U)=>U){} foo((arg1, args2:number)=>{return new Object()}) -/* @@? 17:35 Error TypeError: Type 'Object' is not compatible with the enclosing method's return type 'Double' */ \ No newline at end of file +/* @@? 17:35 Error Semantic error ESE0091: Type 'Object' is not compatible with the enclosing method's return type 'Double' */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets index e61d3b64e1..b65b00be23 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets @@ -39,5 +39,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 39:4 Error TypeError: Expected 18 arguments, got 9. */ -/* @@? 39:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 39:4 Error Semantic error ESE0124: Expected 18 arguments, got 9. */ +/* @@? 39:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets index 74e21ab03d..b694175873 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets @@ -39,5 +39,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 39:4 Error TypeError: Expected 18 arguments, got 23. */ -/* @@? 39:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 39:4 Error Semantic error ESE0124: Expected 18 arguments, got 23. */ +/* @@? 39:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets index 20dbdd8818..1bbeeaee0c 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets @@ -38,5 +38,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 16 arguments, got 18. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 38:4 Error Semantic error ESE0124: Expected 16 arguments, got 18. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets index 57d60ac879..c757c5ec57 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets @@ -38,5 +38,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 16 arguments, got 15. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 38:4 Error Semantic error ESE0124: Expected 16 arguments, got 15. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets index 3c97a6f8c3..79af18308b 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets @@ -38,5 +38,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 17 arguments, got 15. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 38:4 Error Semantic error ESE0124: Expected 17 arguments, got 15. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets index bf482d1aee..33d4e1ba23 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets @@ -18,6 +18,6 @@ function func(fn:(x:int)=>void) { } func(x)=>console.log(1)) -/* @@? 19:8 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:8 Error SyntaxError: Unexpected token. */ -/* @@? 19:24 Error SyntaxError: Unexpected token ')'. */ +/* @@? 19:8 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:8 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets index eac89534ee..58640c2ce5 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets @@ -16,4 +16,4 @@ function func(fn:(x:int)=>string){} func((x)=>1) -/* @@? 17:11 Error TypeError: Type 'Int' is not compatible with the enclosing method's return type 'String' */ +/* @@? 17:11 Error Semantic error ESE0091: Type 'Int' is not compatible with the enclosing method's return type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets index 2ced944999..c82fc4d12f 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets @@ -15,5 +15,5 @@ let a: int => void -/* @@? 16:12 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 16:12 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets b/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets index 5e7f4e4636..db07ca48de 100644 --- a/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets @@ -21,4 +21,4 @@ function main(): void { gf("abc" as String, /* @@ label */(x: String): Int => { return x=="TEST"?0:1}) } -/* @@@ label Error TypeError: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ +/* @@@ label Error Semantic error ESE0046: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets b/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets index 243d1920d6..fe06120928 100644 --- a/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets @@ -21,5 +21,5 @@ function main(): void { gf("abc" as String, (x: String): Int => { return x=="TEST"?0:1}) } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ -/* @@? 21:24 Error TypeError: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ +/* @@? 21:24 Error Semantic error ESE0046: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/lexer003.ets b/ets2panda/test/ast/parser/ets/lexer003.ets index 6e9900937b..e276f78b9c 100644 --- a/ets2panda/test/ast/parser/ets/lexer003.ets +++ b/ets2panda/test/ast/parser/ets/lexer003.ets @@ -13,12 +13,10 @@ * limitations under the License. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:4 Error TypeError: Unresolved reference message */ -/* @@? 24:15 Error SyntaxError: Unterminated string. */ -/* @@? 24:19 Error SyntaxError: Unterminated string. */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:19 Error SyntaxError: Expected '}', got 'end of stream'. */ - -`${message ?? 'ver \ No newline at end of file +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 24:4 Error Semantic error ESE0143: Unresolved reference message */ +/* @@? 24:15 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 24:19 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 24:19 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 24:19 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 24:19 Error Syntax error ESY0228: Unexpected token, expected '`'. */ diff --git a/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets b/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets index afbd9e8ed3..a46bcbd133 100644 --- a/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets +++ b/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets @@ -15,6 +15,6 @@ while(true) function a (){}; -/* @@? 16:13 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 16:13 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 16:28 Error SyntaxError: Missing body in while statement */ +/* @@? 16:13 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 16:13 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 16:28 Error Syntax error ESY0300: Missing body in while statement */ diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets index c5e563e92d..9f6981bf4b 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets @@ -20,4 +20,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets index 3bb4c4d899..9f4c4d0762 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets index 6a84944ebc..ac288f001f 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets index 2e523713b2..0fa5e54635 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets @@ -20,5 +20,5 @@ function foo() private property : int; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets index 85dd9b2df4..a8ec277819 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets @@ -20,5 +20,5 @@ function foo() private method() : void; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets index 2e7a15b760..850985daed 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets index a320b25eb8..f590d07be4 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets index 3b55135eb7..c92316b62c 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets @@ -20,5 +20,5 @@ function foo() public property : int; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets index 5bf531cf9f..a6055e4ca2 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-enum.ets b/ets2panda/test/ast/parser/ets/local-enum.ets index 2e3a21b49c..3894b42d71 100644 --- a/ets2panda/test/ast/parser/ets/local-enum.ets +++ b/ets2panda/test/ast/parser/ets/local-enum.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets index bc73b32371..e380548a8d 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets index 83cbdb3256..9182acd2fd 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets index 5fb4868303..a319caeac4 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets index 490354a619..3a61c4dbad 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets index 7f76e7b990..b145fae73c 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets @@ -21,6 +21,6 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@@ label3 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@@ label3 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets index af6da8fe3b..0e4f7ec706 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets index fb98c611cf..746a9595f6 100644 --- a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets +++ b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets @@ -19,5 +19,5 @@ function main(): void { let outA : /* @@ label2 */a; -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error TypeError: Cannot find type 'a'. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Semantic error ESE0371: Cannot find type 'a'. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_already_class.ets b/ets2panda/test/ast/parser/ets/local_class_already_class.ets index 3bfff8e7d3..9110c4857c 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_class.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_class.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_already_interface.ets b/ets2panda/test/ast/parser/ets/local_class_already_interface.ets index 64e86ea35f..308011c60f 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_interface.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_already_variable.ets b/ets2panda/test/ast/parser/ets/local_class_already_variable.ets index c784418b2c..feea2771cd 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_variable.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_variable.ets @@ -20,4 +20,4 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets b/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets index 7ae5c158df..50ac81c803 100644 --- a/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets +++ b/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets @@ -49,13 +49,13 @@ class A_class{ } } -/* @@? 18:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 19:9 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 24:15 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 30:9 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 31:24 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 33:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 36:15 Error TypeError: Cannot find type 'AbstractLocalClass2'. */ -/* @@? 36:41 Error TypeError: Cannot find type 'AbstractLocalClass2'. */ -/* @@? 38:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 43:15 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 18:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 19:9 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 24:15 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 30:9 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 31:24 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 33:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 36:15 Error Semantic error ESE0371: Cannot find type 'AbstractLocalClass2'. */ +/* @@? 36:41 Error Semantic error ESE0371: Cannot find type 'AbstractLocalClass2'. */ +/* @@? 38:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 43:15 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_enum.ets b/ets2panda/test/ast/parser/ets/local_enum.ets index 73d642975b..b3d7d0b036 100644 --- a/ets2panda/test/ast/parser/ets/local_enum.ets +++ b/ets2panda/test/ast/parser/ets/local_enum.ets @@ -37,12 +37,10 @@ interface I{ enum E {E1} } -/* @@? 17:3 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 21:3 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 24:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 29:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 32:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 37:4 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 37:11 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 37:12 Error TypeError: Cannot find type 'E1'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 37:9 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 29:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 29:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 29:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 31:8 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 34:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 37:9 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface.ets b/ets2panda/test/ast/parser/ets/local_interface.ets index e645260fca..1df91081c5 100644 --- a/ets2panda/test/ast/parser/ets/local_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_interface.ets @@ -69,13 +69,7 @@ class C { } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label4 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label6 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label7 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label8 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label9 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label10 Error SyntaxError: Illegal start of CLASS expression. */ \ No newline at end of file +/* @@? 51:28 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 51:35 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 60:8 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 70:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_class.ets b/ets2panda/test/ast/parser/ets/local_interface_already_class.ets index df8b96452f..e815d2aba2 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_class.ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_class.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of INTERFACE expression. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets b/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets index 67952a2acf..0042b448fb 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of INTERFACE expression. */ +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets b/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets index 0660c505d4..a4b7a10503 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets @@ -20,4 +20,4 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of INTERFACE expression. */ +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_type_alias.ets b/ets2panda/test/ast/parser/ets/local_type_alias.ets index 9060686ac9..54c54670e5 100644 --- a/ets2panda/test/ast/parser/ets/local_type_alias.ets +++ b/ets2panda/test/ast/parser/ets/local_type_alias.ets @@ -39,14 +39,8 @@ interface I{ type a = A; } -/* @@? 19:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 23:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 26:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 31:7 Error SyntaxError: Field type annotation expected. */ -/* @@? 31:12 Error SyntaxError: Class cannot be used as object. */ -/* @@? 34:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 39:9 Error TypeError: Cannot find type 'a'. */ -/* @@? 39:11 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 39:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 39:13 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 39:14 Error SyntaxError: Identifier expected. */ +/* @@? 39:9 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 31:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 31:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 31:12 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 39:9 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/loops.ets b/ets2panda/test/ast/parser/ets/loops.ets index b615b0ecd6..8564be2d02 100644 --- a/ets2panda/test/ast/parser/ets/loops.ets +++ b/ets2panda/test/ast/parser/ets/loops.ets @@ -64,4 +64,4 @@ function labeledcontinue(): void { } } -/* @@? 19:15 Error TypeError: Unresolved reference i */ +/* @@? 19:15 Error Semantic error ESE0143: Unresolved reference i */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_2.ets b/ets2panda/test/ast/parser/ets/main_entry_point_2.ets index c980858747..0231f14a6c 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_2.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_2.ets @@ -17,4 +17,4 @@ function main(): char { /* @@ label */return c'a'; } -/* @@@ label Error TypeError: Bad return type, main enable only void or int type. */ +/* @@@ label Error Semantic error ESE0088: Bad return type, main enable only void or int type. */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_3.ets b/ets2panda/test/ast/parser/ets/main_entry_point_3.ets index 12aeee1168..0e141efaef 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_3.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_3.ets @@ -17,4 +17,4 @@ function main(/* @@ label */i : int[]): void { return; } -/* @@@ label Error TypeError: Only 'FixedArray' type argument is allowed. */ +/* @@@ label Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_4.ets b/ets2panda/test/ast/parser/ets/main_entry_point_4.ets index 79e4b004ee..851cdc4e89 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_4.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_4.ets @@ -17,4 +17,4 @@ function main(i : int[], ii : int): void { return; } -/* @@? 16:10 Error TypeError: 0 or 1 argument are allowed */ +/* @@? 16:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_5.ets b/ets2panda/test/ast/parser/ets/main_entry_point_5.ets index fdca0d522c..c4a4438e53 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_5.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_5.ets @@ -21,5 +21,5 @@ function /* @@ label */main(i : string[]): void { return; } -/* @@? 20:24 Error TypeError: Main overload is not enabled */ -/* @@? 20:29 Error TypeError: Only 'FixedArray' type argument is allowed. */ +/* @@@ label Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 20:29 Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ diff --git a/ets2panda/test/ast/parser/ets/method_full.ets b/ets2panda/test/ast/parser/ets/method_full.ets index 37360616d7..99014c334b 100644 --- a/ets2panda/test/ast/parser/ets/method_full.ets +++ b/ets2panda/test/ast/parser/ets/method_full.ets @@ -30,8 +30,8 @@ abstract class method_full { private native foo_native(): int ; } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label4 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label1 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label4 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets index 821072dfef..1cd0b643ea 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract static foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets index ab3775e63a..d573aa3685 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets @@ -17,5 +17,5 @@ class A { final static foo() : void {} } -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ +/* @@? 17:5 Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@? 17:5 Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets index f61c43667d..e4c8e39024 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets @@ -17,4 +17,4 @@ class A { final override foo/* @@ label */() : void {} } -/* @@@ label Error TypeError: Method foo(): void in A not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(): void in A not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets index 4f9ecbcc86..7958404f81 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets @@ -17,4 +17,4 @@ class A { final native foo() : void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets index a4d21bce02..f0b35a6f34 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets @@ -17,4 +17,4 @@ abstract class A { /* @@ label */native abstract foo() : void; } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets index d9ddd68e77..294ffb0f3e 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets @@ -18,5 +18,5 @@ class A { static final foo2() : void {}; } -/* @@? 18:5 Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@? 18:5 Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file +/* @@? 18:5 Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@? 18:5 Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets index beb38160f4..6d7b25f19a 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets @@ -17,4 +17,4 @@ class A { native override foo/* @@ label */() : void; } -/* @@@ label Error TypeError: Method foo(): void in A not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(): void in A not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets index 0d44625fb3..af8225a238 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets @@ -30,4 +30,4 @@ a.instance_method () function main() {} -/* @@@ label Error TypeError: Cannot call abstract method! */ +/* @@@ label Error Semantic error ESE0026: Cannot call abstract method! */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets index 134d8fae47..6d080ec622 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract final foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets index 04ca1b3e84..551422e7b2 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract override foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets index 35b31adb7e..00cc4cbe23 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract native foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets index fd5a2f5635..08f9fd17e0 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */static abstract foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets index 43793d5207..201fdce5e3 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets @@ -17,5 +17,5 @@ class A { static final foo(): void {} } -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ +/* @@? 17:5 Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@? 17:5 Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets index eb889baf01..e1d9218433 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets @@ -17,4 +17,4 @@ class A { /* @@ label */static override foo(): void {} } -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets index 4b48b2eb56..08025f2550 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets @@ -17,4 +17,4 @@ abstract class A { /* @@ label */final abstract foo() : void; } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ diff --git a/ets2panda/test/ast/parser/ets/methods.ets b/ets2panda/test/ast/parser/ets/methods.ets index de66f5d661..5d2fad39fe 100644 --- a/ets2panda/test/ast/parser/ets/methods.ets +++ b/ets2panda/test/ast/parser/ets/methods.ets @@ -40,4 +40,4 @@ final class C4 extends C3 { override a(): void {}; } -/* @@@ label Error TypeError: Only abstract or native methods can't have body. */ +/* @@@ label Error Semantic error ESE0017: Only abstract or native methods can't have body. */ diff --git a/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets b/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets index 64b36ca550..1fcd126a92 100644 --- a/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets +++ b/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets @@ -15,10 +15,10 @@ class URIError extends WebAssembly {WebAssembly : WeakMap [-6]} -/* @@? 1:3 Error TypeError: Class 'URIError' is already defined. */ -/* @@? 16:24 Error TypeError: Cannot find type 'WebAssembly'. */ -/* @@? 16:24 Error TypeError: The super type of 'URIError' class is not extensible. */ -/* @@? 16:60 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:60 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:61 Error SyntaxError: Unexpected token '6'. */ -/* @@? 16:62 Error SyntaxError: Unexpected token ']'. */ \ No newline at end of file +/* @@? 1:3 Error Semantic error ESE0349: Class 'URIError' is already defined. */ +/* @@? 16:24 Error Semantic error ESE0371: Cannot find type 'WebAssembly'. */ +/* @@? 16:24 Error Semantic error ESE0176: The super type of 'URIError' class is not extensible. */ +/* @@? 16:60 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:60 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:61 Error Syntax error ESY0227: Unexpected token '6'. */ +/* @@? 16:62 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets index 2e7d7ff93f..e5abe3dcd0 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets @@ -27,4 +27,4 @@ class Derived implements Interface /* @@ label */{ } -/* @@@ label Error TypeError: Derived is not abstract and does not implement setter for instance_field property in Interface */ +/* @@@ label Error Semantic error ESE0189: Derived is not abstract and does not implement setter for instance_field property in Interface */ diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets index 2b1080c3b7..e0ceeef096 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets @@ -28,4 +28,4 @@ class Derived implements Interface /* @@ label */{ } -/* @@@ label Error TypeError: Derived is not abstract and does not implement getter for instance_field property in Interface */ +/* @@@ label Error Semantic error ESE0188: Derived is not abstract and does not implement getter for instance_field property in Interface */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets b/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets index 88b0f45e72..338bf13ca6 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets @@ -17,10 +17,10 @@ for /* @@ label */let i = 0; i < count; ++i) { result = result + p[i]!.awaitResolution() * /* @@ label1 */a[i]; } -/* @@@ label Error SyntaxError: Expected '(', got 'let'. */ -/* @@? 16:34 Error TypeError: Unresolved reference count */ -/* @@? 17:5 Error TypeError: Unresolved reference result */ -/* @@? 17:23 Error TypeError: Unresolved reference p */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label1 Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'let'. */ +/* @@? 16:34 Error Semantic error ESE0143: Unresolved reference count */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference result */ +/* @@? 17:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets b/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets index a290ef8d7d..13eee2e691 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets @@ -17,10 +17,10 @@ for (let i = 0; i < count; ++i /* @@ label */{ result = result + p[i]!.awaitResolution() * /* @@label1 */a[i]; } -/* @@? 16:21 Error TypeError: Unresolved reference count */ -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ -/* @@? 17:5 Error TypeError: Unresolved reference result */ -/* @@? 17:23 Error TypeError: Unresolved reference p */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label1 Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 16:21 Error Semantic error ESE0143: Unresolved reference count */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference result */ +/* @@? 17:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:63 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 17:63 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets b/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets index b436d64715..3a85fc6678 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets @@ -15,4 +15,4 @@ if (true /* @@ label */{ console.log("hello!") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets b/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets index 88f429a626..6a2d12e42a 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets @@ -15,5 +15,5 @@ if /* @@ label */true /* @@ label1 */{ console.log("hello!") } -/* @@@ label Error SyntaxError: Expected '(', got 'true'. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'true'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/multiple_fields.ets b/ets2panda/test/ast/parser/ets/multiple_fields.ets index 06b9aeef41..ed5281e654 100644 --- a/ets2panda/test/ast/parser/ets/multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/multiple_fields.ets @@ -17,4 +17,4 @@ class C { x: int/* @@ label1 */, y: int; } -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets index 33ed150ffb..8c447e7c6e 100644 --- a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets @@ -18,5 +18,5 @@ function main(): void { let d: char[] = /* @@ label1 */null; } -/* @@? 17:38 Error TypeError: Type 'null' cannot be assigned to type 'Array' */ -/* @@? 18:36 Error TypeError: Type 'null' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Array' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets index 85238afe01..0647cc1b73 100644 --- a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets +++ b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets @@ -23,4 +23,4 @@ function main(): void { let x : Object = /* @@ label */foo(); } -/* @@@ label Error TypeError: Type 'A|null' cannot be assigned to type 'Object' */ +/* @@@ label Error Semantic error ESE0318: Type 'A|null' cannot be assigned to type 'Object' */ diff --git a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets index 3e9b32aba2..26f56d5c6b 100644 --- a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets +++ b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets @@ -17,4 +17,4 @@ function main(): void { let a : int |/* @@ label */; } -/* @@@ label Error SyntaxError: Invalid Type. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets index 62bc60bdda..4803f42c43 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets @@ -19,4 +19,4 @@ function foo() : A { return /* @@ label */null; } -/* @@@ label Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'A' */ +/* @@@ label Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'A' */ diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets index 29e7f68e26..881ee8bcec 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'A' */ +/* @@@ label Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'A' */ diff --git a/ets2panda/test/ast/parser/ets/named_types.ets b/ets2panda/test/ast/parser/ets/named_types.ets index f782419a4b..97eb93f2f4 100644 --- a/ets2panda/test/ast/parser/ets/named_types.ets +++ b/ets2panda/test/ast/parser/ets/named_types.ets @@ -30,9 +30,9 @@ class auxilliary { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 19:12 Error TypeError: Cannot find type 'ets'. */ -/* @@? 19:16 Error TypeError: 'lang' type does not exist. */ -/* @@? 19:21 Error TypeError: 'String' type does not exist. */ -/* @@? 29:20 Error TypeError: Type 'inner' is generic but type argument were not provided. */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'ets'. */ +/* @@? 19:16 Error Semantic error ESE0070: 'lang' type does not exist. */ +/* @@? 19:21 Error Semantic error ESE0070: 'String' type does not exist. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 21:30 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 29:20 Error Semantic error ESE0170: Type 'inner' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/named_types_1.ets b/ets2panda/test/ast/parser/ets/named_types_1.ets index 675be901c5..08de8ddfb8 100644 --- a/ets2panda/test/ast/parser/ets/named_types_1.ets +++ b/ets2panda/test/ast/parser/ets/named_types_1.ets @@ -18,4 +18,4 @@ class named_types { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file +/* @@? 17:34 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_bad_token.ets b/ets2panda/test/ast/parser/ets/namespace_bad_token.ets index 5576913d33..b4f5f89d4a 100644 --- a/ets2panda/test/ast/parser/ets/namespace_bad_token.ets +++ b/ets2panda/test/ast/parser/ets/namespace_bad_token.ets @@ -17,5 +17,5 @@ declare namespace uiObserver { function on(options: { a: number }, callback: ): void; } -/* @@? 17:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:51 Error SyntaxError: Invalid Type. */ \ No newline at end of file +/* @@? 17:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:51 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets index 77283eddc7..bcf0392313 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets @@ -17,4 +17,4 @@ namespace MySpace{ ... } -/* @@? 17:5 Error SyntaxError: Unexpected token '...'. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '...'. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets index 5d0d663fc1..85c1e84109 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets @@ -15,4 +15,4 @@ namespace MySpace{ -/* @@? 19:1 Error SyntaxError: Unexpected token. */ +/* @@? 19:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets index 62b721754e..e3be4b8f0e 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets @@ -15,4 +15,4 @@ namespace MySpace{ }} -/* @@? 17:2 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:2 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets index f5dd2523aa..be8f18cd6c 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets @@ -16,5 +16,5 @@ declare namespace MySpace{ foo():void } -/* @@? 17:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets b/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets index 4de8ee4d0a..968d7ac8a5 100644 --- a/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets @@ -30,6 +30,6 @@ class Apple{ } -/* @@@ label Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label1 Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label2 Error TypeError: Native constructor declaration cannot have a body. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label1 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label2 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ diff --git a/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets b/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets index 1cb519270d..2986c05bce 100644 --- a/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets @@ -26,5 +26,5 @@ class Apple{ this.y=y } } -/* @@@ label Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label1 Error TypeError: Native constructor declaration cannot have a body. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label1 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ diff --git a/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets b/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets index 5c61f1e38a..8ed8066ebe 100644 --- a/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets +++ b/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets @@ -19,4 +19,4 @@ function main(): void { foo(); } -/* @@? 16:17 Error TypeError: Native and Declare methods should have explicit return type. */ +/* @@? 16:17 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/parser/ets/nested_function.ets b/ets2panda/test/ast/parser/ets/nested_function.ets index 881d82ec03..277a3858c6 100644 --- a/ets2panda/test/ast/parser/ets/nested_function.ets +++ b/ets2panda/test/ast/parser/ets/nested_function.ets @@ -18,5 +18,5 @@ function main() /* @@ label */function b() /* @@ label1 */} -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/nested_function_1.ets b/ets2panda/test/ast/parser/ets/nested_function_1.ets index 9325e91cb2..46727b58b2 100644 --- a/ets2panda/test/ast/parser/ets/nested_function_1.ets +++ b/ets2panda/test/ast/parser/ets/nested_function_1.ets @@ -25,5 +25,5 @@ function main() b() } -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/nested_function_in_method.ets b/ets2panda/test/ast/parser/ets/nested_function_in_method.ets index 02f7746552..da74dfc5d9 100644 --- a/ets2panda/test/ast/parser/ets/nested_function_in_method.ets +++ b/ets2panda/test/ast/parser/ets/nested_function_in_method.ets @@ -28,5 +28,5 @@ function main() a.foo() } -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/new_object_undefined.ets b/ets2panda/test/ast/parser/ets/new_object_undefined.ets index c18f4c8778..4aba3259ed 100644 --- a/ets2panda/test/ast/parser/ets/new_object_undefined.ets +++ b/ets2panda/test/ast/parser/ets/new_object_undefined.ets @@ -19,5 +19,5 @@ function main() new null(); } -/* @@? 18:5 Error TypeError: Type 'undefined' is not constructible. */ -/* @@? 19:5 Error TypeError: Type 'null' is not constructible. */ +/* @@? 18:5 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ +/* @@? 19:5 Error Semantic error ESE0290: Type 'null' is not constructible. */ diff --git a/ets2panda/test/ast/parser/ets/no-call-signatures.ets b/ets2panda/test/ast/parser/ets/no-call-signatures.ets index e2758cb7fc..edd11ac684 100644 --- a/ets2panda/test/ast/parser/ets/no-call-signatures.ets +++ b/ets2panda/test/ast/parser/ets/no-call-signatures.ets @@ -23,6 +23,15 @@ function doSomething(fn: DescribableFunction) { fn(6) } -/* @@@ label Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 23:5 Error TypeError: No static $_invoke method and static $_instantiate method in fn. fn() is not allowed. */ -/* @@? 23:5 Error TypeError: Type 'DescribableFunction' has no call signatures. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:20 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:27 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:35 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:45 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:16 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:23 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:24 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:32 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:33 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets b/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets index d0f5d9193a..9dd5853ab9 100644 --- a/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets +++ b/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets @@ -21,5 +21,5 @@ function fn(ctor: SomeConstructor) { return new ctor("hello") } -/* @@? 18:7 Error SyntaxError: Constructor signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 21:14 Error TypeError: Cannot find type 'ctor'. */ \ No newline at end of file +/* @@? 18:7 Error Syntax error ESY103145: Constructor signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 21:14 Error Semantic error ESE0371: Cannot find type 'ctor'. */ diff --git a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets index 3f19f5974a..00ce9556d1 100644 --- a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets +++ b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets @@ -19,7 +19,4 @@ let bar = () => { } foo(1.0); bar(); -/* @@? 16:11 Error SyntaxError: Generic lambda expressions are not supported. */ -/* @@? 17:11 Error SyntaxError: Generic lambda expressions are not supported. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 20:1 Error TypeError: This expression is not callable. */ +/* @@? 16:18 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/parser/ets/no_prototype.ets b/ets2panda/test/ast/parser/ets/no_prototype.ets index 2f70cb7112..6220acef52 100644 --- a/ets2panda/test/ast/parser/ets/no_prototype.ets +++ b/ets2panda/test/ast/parser/ets/no_prototype.ets @@ -23,14 +23,14 @@ C.prototype = { } } -/* @@? 18:3 Error TypeError: Property 'prototype' does not exist on type 'C' */ -/* @@? 18:13 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 18:22 Error TypeError: Property 'prototype' does not exist on type 'Object' */ -/* @@? 20:1 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 20:3 Error TypeError: Property 'prototype' does not exist on type 'C' */ -/* @@? 20:13 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 21:4 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:7 Error SyntaxError: Unexpected token. */ -/* @@? 22:12 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:3 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'C' */ +/* @@? 18:13 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 18:22 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'Object' */ +/* @@? 20:1 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 20:3 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'C' */ +/* @@? 20:13 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 21:4 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:7 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 22:12 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/nolint_bad.ets b/ets2panda/test/ast/parser/ets/nolint_bad.ets index b4aa54d097..d40ac23dc0 100644 --- a/ets2panda/test/ast/parser/ets/nolint_bad.ets +++ b/ets2panda/test/ast/parser/ets/nolint_bad.ets @@ -17,6 +17,6 @@ // ETSNOLINT(definitely-not-a-real-etsnolint-argument) // ETSNOLINT(@) function main() {} -/* @@? 1:3 Error SyntaxError: Invalid argument for ETSNOLINT! */ -/* @@? 1:3 Error SyntaxError: Unexpected character for ETSNOLINT argument! [VALID ONLY: a-z, '-']. */ -/* @@? 1:3 Error SyntaxError: Invalid argument for ETSNOLINT! */ +/* @@? 1:3 Error Syntax error ESY0278: Invalid argument for ETSNOLINT! */ +/* @@? 1:3 Error Syntax error ESY0277: Unexpected character for ETSNOLINT argument! [VALID ONLY: a-z, '-']. */ +/* @@? 1:3 Error Syntax error ESY0278: Invalid argument for ETSNOLINT! */ diff --git a/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets b/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets index ede2ed654f..4a14262d94 100644 --- a/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets +++ b/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets @@ -17,4 +17,4 @@ class A{ /* @@ label */(a:number) :number } -/* @@@ label Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@@ label Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ diff --git a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets index 7ff657c8b2..750b40b44e 100644 --- a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets +++ b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets @@ -22,4 +22,4 @@ class szeretettek implements ősz { private /* @@ label */field: int; } -/* @@@ label Error TypeError: Interface property implementation cannot be generated as non-public */ +/* @@@ label Error Semantic error ESE0217: Interface property implementation cannot be generated as non-public */ diff --git a/ets2panda/test/ast/parser/ets/non_constant_expression.ets b/ets2panda/test/ast/parser/ets/non_constant_expression.ets index edb49055eb..bc59abe9e7 100644 --- a/ets2panda/test/ast/parser/ets/non_constant_expression.ets +++ b/ets2panda/test/ast/parser/ets/non_constant_expression.ets @@ -22,4 +22,4 @@ let cc = 1 function foo() {} -/* @@? 21:14 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 21:14 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/non_proper_index_method.ets b/ets2panda/test/ast/parser/ets/non_proper_index_method.ets index 49fbed1717..7afbcd44f0 100644 --- a/ets2panda/test/ast/parser/ets/non_proper_index_method.ets +++ b/ets2panda/test/ast/parser/ets/non_proper_index_method.ets @@ -22,12 +22,12 @@ function main() { console.log(/* @@ label */a["a"]) } -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets b/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets index 097eb8d19c..358e9c25d6 100644 --- a/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets +++ b/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets @@ -23,5 +23,5 @@ function main(): void { } } -/* @@? 22:20 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 22:20 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 22:20 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 22:20 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets index 1b99782dc6..33ff14fb5c 100644 --- a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets +++ b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets @@ -37,5 +37,5 @@ function main(): void { /* @@ label */a./* @@ label1 */increment(); } -/* @@@ label1 Error TypeError: Property 'increment' does not exist on type 'C' */ -/* @@@ label Error TypeError: Member type must be the same for all union objects. */ +/* @@@ label Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0087: Property 'increment' does not exist on type 'C' */ diff --git a/ets2panda/test/ast/parser/ets/null_invalid.ets b/ets2panda/test/ast/parser/ets/null_invalid.ets index 809f968929..08f518638e 100644 --- a/ets2panda/test/ast/parser/ets/null_invalid.ets +++ b/ets2panda/test/ast/parser/ets/null_invalid.ets @@ -16,4 +16,4 @@ const n = null; let o : Object = /* @@ label */n; -/* @@@ label Error TypeError: Type 'null' cannot be assigned to type 'Object' */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ diff --git a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets index 41fde61d26..f67f9e81d5 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets @@ -22,4 +22,4 @@ function main(){ let a : A = {name : "John", age : 11, /* @@ label */age : 12} } -/* @@@ label Error TypeError: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ diff --git a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets index 0ebda6e85b..7ec83b3618 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets @@ -22,4 +22,4 @@ function main(){ let a : A = {name : "John", age : 11, /* @@ label */age : 12} } -/* @@@ label Error TypeError: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ diff --git a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets index 12ccf8b28d..dbdbedb8e7 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets @@ -16,9 +16,9 @@ interface A { foo(): void} const x: A = {foo() {}} -/* @@? 17:15 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token. */ -/* @@? 17:22 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:15 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:21 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets b/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets index fc1f9e3a76..646392da07 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets @@ -19,4 +19,4 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '&&='. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '&&='. */ diff --git a/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets b/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets index bd896f54bd..bc4716281b 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets @@ -19,4 +19,4 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '??='. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '??='. */ diff --git a/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets b/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets index 6d7a13b8e3..1e97af1f4d 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets @@ -19,4 +19,4 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '||='. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '||='. */ diff --git a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets index fd1f441713..8fc788e3b2 100644 --- a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets +++ b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets @@ -19,4 +19,4 @@ let test = arr?.[1] ?? "unknown"; let arr2: String[] | null; let test2 = arr2?.[100] ?? "unknown2"; -/* @@? 20:13 Error TypeError: Variable 'arr2' is used before being assigned. */ +/* @@? 20:13 Error Semantic error ESE0375: Variable 'arr2' is used before being assigned. */ diff --git a/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets b/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets index 70b3e51012..707b7f16e3 100644 --- a/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets +++ b/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets @@ -25,4 +25,4 @@ let dog: Dog = { let hasSting = dog?.hasSting; -/* @@? 26:21 Error TypeError: Property 'hasSting' does not exist on type 'Dog' */ +/* @@? 26:21 Error Semantic error ESE0087: Property 'hasSting' does not exist on type 'Dog' */ diff --git a/ets2panda/test/ast/parser/ets/optional_field.ets b/ets2panda/test/ast/parser/ets/optional_field.ets index de1c1e5af0..beaeed8040 100644 --- a/ets2panda/test/ast/parser/ets/optional_field.ets +++ b/ets2panda/test/ast/parser/ets/optional_field.ets @@ -54,5 +54,5 @@ function main() : int return 0; } -/* @@? 27:4 Error TypeError: Function method with this assembly signature already declared. */ -/* @@? 41:14 Error SyntaxError: Optional variable is deprecated and no longer supported. */ \ No newline at end of file +/* @@? 27:4 Error Semantic error ESE0131: Function method with this assembly signature already declared. */ +/* @@? 41:14 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ diff --git a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets index 5399071528..e9483f0e54 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets @@ -31,5 +31,5 @@ abstract class C implements I } } -/* @@? 25:13 Error TypeError: field(): Object|undefined in C cannot override field(): undefined|String|Double in I because overriding return type is not compatible with the other return type. */ -/* @@? 25:13 Error TypeError: Method field(): Object|undefined in C not overriding any method */ +/* @@? 25:13 Error Semantic error ESE0141: field(): Object|undefined in C cannot override field(): undefined|String|Double in I because overriding return type is not compatible with the other return type. */ +/* @@? 25:13 Error Semantic error ESE0136: Method field(): Object|undefined in C not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/optional_field_variable.ets b/ets2panda/test/ast/parser/ets/optional_field_variable.ets index 36a1540c41..e0d76f0398 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_variable.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_variable.ets @@ -26,5 +26,5 @@ function foo(param? : Object) for (let i? : Number = 1;;) { break; } } -/* @@? 23:14 Error SyntaxError: Optional variable is deprecated and no longer supported. */ -/* @@? 26:16 Error SyntaxError: Optional variable is deprecated and no longer supported. */ \ No newline at end of file +/* @@? 23:14 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ +/* @@? 26:16 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ diff --git a/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets b/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets index ae6a03c309..a889260fa5 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets @@ -18,4 +18,4 @@ function foo(param? : Object) for (let i/* @@ label */? of "blablabla") { } } -/* @@@ label Error SyntaxError: Optional variable is not allowed in for of statements. */ +/* @@@ label Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ diff --git a/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets b/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets index 1f80043685..b867301b91 100644 --- a/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets +++ b/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets @@ -15,15 +15,15 @@ interface"actual : " + actual.result[i] -/* @@? 16:10 Error SyntaxError: Number, string or computed value property name 'actual : ' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:10 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 16:22 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 16:30 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 16:39 Error SyntaxError: Identifier expected. */ -/* @@? 16:39 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:39 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 30:1 Error SyntaxError: Identifier expected. */ -/* @@? 30:1 Error SyntaxError: Unexpected token, expected '}'. */ +/* @@? 16:10 Error Syntax error ESY0315: Number, string or computed value property name 'actual : ' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:10 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 16:22 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 16:30 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 16:38 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:38 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:38 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 16:39 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:39 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:39 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 30:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 30:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ diff --git a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets index 30982b269a..f5a3016217 100644 --- a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets +++ b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets @@ -23,6 +23,6 @@ class C implements A /* @@ label1 */{ } } -/* @@@ label Error TypeError: Cannot inherit from interface A because method length is inherited with a different declaration type */ -/* @@@ label1 Error TypeError: C is not abstract and does not override abstract method length(): Double in A */ -/* @@@ label2 Error TypeError: Method length(): Double in C not overriding any method */ +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface A because method length is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0190: C is not abstract and does not override abstract method length(): Double in A */ +/* @@@ label2 Error Semantic error ESE0136: Method length(): Double in C not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/override_method.ets b/ets2panda/test/ast/parser/ets/override_method.ets index e13c36a416..1a27eb97e8 100644 --- a/ets2panda/test/ast/parser/ets/override_method.ets +++ b/ets2panda/test/ast/parser/ets/override_method.ets @@ -25,6 +25,6 @@ final class T extends P { } } -/* @@? 22:23 Error TypeError: Cannot inherit with 'final' modifier. */ -/* @@? 23:24 Error TypeError: foo(): Int in T cannot override foo(): Int in P because overridden method is final. */ -/* @@? 23:24 Error TypeError: Method foo(): Int in T not overriding any method */ +/* @@? 22:23 Error Semantic error ESE0178: Cannot inherit with 'final' modifier. */ +/* @@? 23:24 Error Semantic error ESE0141: foo(): Int in T cannot override foo(): Int in P because overridden method is final. */ +/* @@? 23:24 Error Semantic error ESE0136: Method foo(): Int in T not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets index f500f49c6e..8d2f21c3ae 100644 --- a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets +++ b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets @@ -35,5 +35,5 @@ function foa(b: Partial>): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'Partial>' is not compatible with type 'Partial>' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(Partial>) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(Partial>) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'Partial>' is not compatible with type 'Partial>' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets index 6097e8bfb6..92ab2a5829 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets @@ -31,5 +31,5 @@ function foa(b: B): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'Partial' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(B) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'Partial' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets index fcf39370fc..83f02c1233 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets @@ -31,5 +31,5 @@ function foa(b: B): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'Partial' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(B) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'Partial' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/partialType_4.ets b/ets2panda/test/ast/parser/ets/partialType_4.ets index 8cf429864d..582e62c971 100644 --- a/ets2panda/test/ast/parser/ets/partialType_4.ets +++ b/ets2panda/test/ast/parser/ets/partialType_4.ets @@ -79,4 +79,4 @@ class A>{ bar(initializers: Partial): void {} } -/* @@@ label Error TypeError: Type 'S' cannot be assigned to type 'T|undefined' */ +/* @@@ label Error Semantic error ESE0318: Type 'S' cannot be assigned to type 'T|undefined' */ diff --git a/ets2panda/test/ast/parser/ets/partial_interface.ets b/ets2panda/test/ast/parser/ets/partial_interface.ets index f0d6fddb59..d10ec8a260 100644 --- a/ets2panda/test/ast/parser/ets/partial_interface.ets +++ b/ets2panda/test/ast/parser/ets/partial_interface.ets @@ -32,6 +32,6 @@ function main(){ partial4.i = 100; } -/* @@? 28:32 Error TypeError: type I$partial has no property named a */ -/* @@? 29:34 Error TypeError: Type '"abcd"' is not compatible with type 'Int|undefined' at property 'i' */ -/* @@? 32:14 Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@? 28:32 Error Semantic error ESE0065: type I$partial has no property named a */ +/* @@? 29:34 Error Semantic error ESE0319: Type '"abcd"' is not compatible with type 'Int|undefined' at property 'i' */ +/* @@? 32:14 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets b/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets index 5c7ce150be..c70bd57bad 100644 --- a/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets +++ b/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets @@ -35,7 +35,7 @@ let s: String = "abc"; // see 3.2.2 Array types let a: int[] = new int[5]; -/* @@? 23:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 27:31 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 27:38 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 23:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 27:31 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 27:38 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ diff --git a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets index fcf1050921..69c99dd4a2 100644 --- a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets +++ b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets @@ -31,5 +31,5 @@ function main(): void { arktest.assertEQ(instance.x, 5); } -/* @@? 25:5 Error TypeError: Signature constructor(alma: Int): void is not visible here. */ -/* @@? 25:5 Error TypeError: No matching call signature for privateSuperConstructorCall.Alma(Int) */ +/* @@? 25:5 Error Semantic error ESE0139: Signature constructor(alma: Int): void is not visible here. */ +/* @@? 25:5 Error Semantic error ESE0127: No matching call signature for privateSuperConstructorCall.Alma(Int) */ diff --git a/ets2panda/test/ast/parser/ets/property-access-field-1.ets b/ets2panda/test/ast/parser/ets/property-access-field-1.ets index d3357fdf84..6b17db6384 100644 --- a/ets2panda/test/ast/parser/ets/property-access-field-1.ets +++ b/ets2panda/test/ast/parser/ets/property-access-field-1.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: 'classVal' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'classVal' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/property-access-field-2.ets b/ets2panda/test/ast/parser/ets/property-access-field-2.ets index 5e1bb2acff..331420c26c 100644 --- a/ets2panda/test/ast/parser/ets/property-access-field-2.ets +++ b/ets2panda/test/ast/parser/ets/property-access-field-2.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: 'instanceVal' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'instanceVal' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/property-access-method-1.ets b/ets2panda/test/ast/parser/ets/property-access-method-1.ets index fdd5660b48..46e2284323 100644 --- a/ets2panda/test/ast/parser/ets/property-access-method-1.ets +++ b/ets2panda/test/ast/parser/ets/property-access-method-1.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/property-access-method-2.ets b/ets2panda/test/ast/parser/ets/property-access-method-2.ets index 1c19044a83..6682777c20 100644 --- a/ets2panda/test/ast/parser/ets/property-access-method-2.ets +++ b/ets2panda/test/ast/parser/ets/property-access-method-2.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_16.ets b/ets2panda/test/ast/parser/ets/re_export/import_16.ets index 738fc70c2a..f2ae87bcac 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_16.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_16.ets @@ -20,4 +20,4 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_17.ets b/ets2panda/test/ast/parser/ets/re_export/import_17.ets index c886b937cf..af138a074b 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_17.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_17.ets @@ -20,4 +20,4 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_20.ets b/ets2panda/test/ast/parser/ets/re_export/import_20.ets index cdad50d23b..419635ab87 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_20.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_20.ets @@ -20,4 +20,4 @@ function main() { name./* @@ label */bar(); } -/* @@@ label Error TypeError: Property 'bar' does not exist on type 'export' */ +/* @@@ label Error Semantic error ESE0087: Property 'bar' does not exist on type 'export' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_5.ets b/ets2panda/test/ast/parser/ets/re_export/import_5.ets index c3371e9141..c496b56036 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_5.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_5.ets @@ -20,4 +20,4 @@ function main() : void /* @@ label */all.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets b/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets index 399324e4b7..948bf97fbb 100644 --- a/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets +++ b/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets @@ -16,4 +16,4 @@ export /* @@ label */{foo} from "./export" export {foo} from "./export_2" -/* @@@ label Error TypeError: Ambiguous export 'foo' */ +/* @@@ label Error Semantic error ESE0362: Ambiguous export 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets b/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets index bfc5c191e6..ef8d2fe088 100644 --- a/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets +++ b/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets @@ -15,4 +15,4 @@ export {foo} from "./re_export_circular.ets" -/* @@? 16:8 Error SyntaxError: Re-exporting local bindings is not allowed */ +/* @@? 16:8 Error Syntax error ESY138237: Re-exporting local bindings is not allowed */ diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets index 2f8f222ce1..c85098340c 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets @@ -30,17 +30,17 @@ function foo(arr: readonly int[]) { arr./* @@ with */with(0, 5); } -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets index 49c10b6b19..80d214533d 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets @@ -33,17 +33,17 @@ class A { } } -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets index bf24504eaa..002613dae1 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets @@ -30,17 +30,17 @@ arr./* @@ toSpliced */toSpliced(); arr./* @@ reverse */reverse(); arr./* @@ with */with(0, 5); -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets index a4cba4c0ae..288ffee50c 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets @@ -19,4 +19,4 @@ function foo(x : readonly Array) let x1 : Array x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly Array' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly Array' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets index 3874a331b2..beb63441d5 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets @@ -18,4 +18,4 @@ function foo (x: readonly Array) { /* @@ label */x[0] = 1 } -/* @@@ label Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets index 2d5de9a3df..98f8f86945 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets @@ -19,5 +19,5 @@ function foo (p: Array) { let x: readonly Array /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly Array) */ -/* @@@ label1 Error TypeError: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly Array) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets index 5865989d84..14d141bdb3 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets @@ -19,5 +19,5 @@ function foo (p: int[]) { let x: Readonly = [] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly Array) */ -/* @@@ label1 Error TypeError: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly Array) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets index e6e6e1759a..882351eaa7 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets @@ -19,6 +19,6 @@ function foo (p: [int, string]) { let x: Readonly<[int, string]> = /* @@ label2 */[] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label1 Error TypeError: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(readonly [Int, String]) */ -/* @@@ label2 Error TypeError: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly [Int, String]) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets index 1d321b90e4..b241a3cd89 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets @@ -17,4 +17,4 @@ function foo (x: Readonly<[int, string]>) { let y: [int, string] = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets index 1f44493fba..6c22d6b512 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets @@ -18,4 +18,4 @@ function foo (x: Readonly) { let x1 : int[] x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly Array' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly Array' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets index 9004027881..c5d8bcac1c 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets @@ -21,4 +21,4 @@ function foo (tuple: Readonly<[number, string, boolean]>, arr: ReadonlyArray = [0] let y2 : Readonly<[int, string]> /* @@ label9 */y2[1] = "b" -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label1 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label2 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label3 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label4 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label5 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label6 Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label7 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label8 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label9 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label2 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label3 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label4 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label5 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label6 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label7 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label8 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label9 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets index 4af0252714..5c2e2cf2ce 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets @@ -17,4 +17,4 @@ function foo (x: readonly int/* @@ label */) { } -/* @@@ label Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ label Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets index 12e4c37fed..d2f39551b6 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets @@ -18,4 +18,4 @@ function foo (x: readonly [int, string]) { let y: [int, string] = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets index c19b5d8a13..d1a940086e 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets @@ -18,4 +18,4 @@ function foo (x: readonly int[]) { let x1 : int[] x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'ReadonlyArray' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'ReadonlyArray' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets index d65a0c683f..0fc8ea4c03 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets @@ -19,5 +19,5 @@ function foo (p: int[]) { let x: readonly int[] = [] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(ReadonlyArray) */ -/* @@@ label1 Error TypeError: Type 'ReadonlyArray' is not compatible with type 'Array' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(ReadonlyArray) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'ReadonlyArray' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets index 1434abd641..07dbc07784 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets @@ -19,6 +19,6 @@ function foo (p: [int, string]) { let x: readonly [int, string] = /* @@ label2 */[] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly [Int, String]) */ -/* @@@ label1 Error TypeError: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ -/* @@@ label2 Error TypeError: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly [Int, String]) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets index a792cb4bdd..a0df91d629 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets @@ -27,5 +27,5 @@ let arr = foo1() let tuple = foo2() /* @@ label1 */tuple[1] = "c" -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label1 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ diff --git a/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets b/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets index 686f313ee0..dbe8ab17cd 100644 --- a/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets +++ b/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets @@ -16,12 +16,12 @@ func: readonly (Y : object | long [] ) => [ ] -/* @@? 17:7 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:7 Error TypeError: Unresolved reference readonly */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'object'. */ -/* @@? 17:22 Error TypeError: Type name 'object' used in the wrong context */ -/* @@? 17:22 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:39 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:42 Error SyntaxError: Unexpected token '=>'. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:7 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token 'object'. */ +/* @@? 17:22 Error Semantic error ESE0144: Type name 'object' used in the wrong context */ +/* @@? 17:22 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets index 9576c6e5dc..a2ca6958da 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets @@ -35,4 +35,4 @@ function main() { arktest.assertEQ(a.a, false); } -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets index 449033192b..a488075f33 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets @@ -30,4 +30,4 @@ function main() { arktest.assertEQ(a.a, false); } -/* @@@ label Error TypeError: Readonly field already initialized at declaration. */ +/* @@@ label Error Semantic error ESE0210: Readonly field already initialized at declaration. */ diff --git a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets index 418b6c6ef1..00bea99ca2 100644 --- a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets +++ b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets @@ -17,5 +17,5 @@ interface A { readonly(): void {} } -/* @@? 17:5 Error SyntaxError: Modifier 'readonly' cannot be applied to an interface method. */ -/* @@? 17:13 Error SyntaxError: Expected 'method name', got '('. */ +/* @@? 17:5 Error Syntax error ESY0033: Modifier 'readonly' cannot be applied to an interface method. */ +/* @@? 17:13 Error Syntax error ESY0230: Expected 'method name', got '('. */ diff --git a/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets b/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets index 435c77d20a..b26ae8aaa9 100644 --- a/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets +++ b/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets @@ -29,5 +29,5 @@ function bar(a:Readonly){ bar(changeAbleVar) -/* @@@ label Error TypeError: Cannot assign to a readonly variable x */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable x */ diff --git a/ets2panda/test/ast/parser/ets/readonly_union_negative.ets b/ets2panda/test/ast/parser/ets/readonly_union_negative.ets index e260f1e32d..78143d45fd 100644 --- a/ets2panda/test/ast/parser/ets/readonly_union_negative.ets +++ b/ets2panda/test/ast/parser/ets/readonly_union_negative.ets @@ -46,19 +46,19 @@ function main(): void { } -/* @@? 19:49 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 24:51 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 28:50 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 32:33 Error TypeError: 'void' used as type annotation. */ -/* @@? 32:47 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 36:55 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 41:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 41:5 Error TypeError: No matching call signature for test_negative_1(Int, "test") */ -/* @@? 42:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 42:5 Error TypeError: No matching call signature for test_negative_2(MyObject, "test") */ -/* @@? 43:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 43:5 Error TypeError: No matching call signature for test_negative_5(Boolean, Array) */ -/* @@? 44:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 44:5 Error TypeError: No matching call signature for test_negative_6(undefined, Int) */ -/* @@? 45:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 45:5 Error TypeError: No matching call signature for test_negative_7(() => void, "test") */ \ No newline at end of file +/* @@? 19:49 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 24:51 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 28:50 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 32:33 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 32:47 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 36:55 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 41:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 41:5 Error Semantic error ESE0127: No matching call signature for test_negative_1(Int, "test") */ +/* @@? 42:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 42:5 Error Semantic error ESE0127: No matching call signature for test_negative_2(MyObject, "test") */ +/* @@? 43:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 43:5 Error Semantic error ESE0127: No matching call signature for test_negative_5(Boolean, Array) */ +/* @@? 44:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 44:5 Error Semantic error ESE0127: No matching call signature for test_negative_6(undefined, Int) */ +/* @@? 45:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 45:5 Error Semantic error ESE0127: No matching call signature for test_negative_7(() => void, "test") */ diff --git a/ets2panda/test/ast/parser/ets/recordIndexing.ets b/ets2panda/test/ast/parser/ets/recordIndexing.ets index 082f69e7b7..3c8ae08f08 100644 --- a/ets2panda/test/ast/parser/ets/recordIndexing.ets +++ b/ets2panda/test/ast/parser/ets/recordIndexing.ets @@ -22,14 +22,14 @@ console.log(x[/* @@ label */0]) } -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 23:17 Error TypeError: No matching indexing signature for $_get(Int) */ -/* @@@ label Error TypeError: Type 'Int' is not compatible with type 'String' at index 1 */ -/* @@@ label Error TypeError: Cannot find index access method with the required signature. */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 23:17 Error Semantic error ESE0127: No matching indexing signature for $_get(Int) */ +/* @@@ label Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String' at index 1 */ +/* @@@ label Error Semantic error ESE0251: Cannot find index access method with the required signature. */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets index aa08c98e22..5a35e0413f 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets @@ -19,4 +19,4 @@ function main(){ "key2": 2 } } -/* @@@ label Error TypeError: Type argument 'Char|String' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'Char|String' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets index d65646705f..47efb684e6 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets @@ -21,4 +21,4 @@ function main(){ 2: 2 } } -/* @@@ label Error TypeError: Type argument 'A|Double' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'A|Double' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets index 5d863c0d03..ac21a8caf3 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets @@ -18,4 +18,4 @@ class A{} function main(){ let a: Record/* @@ label */ } -/* @@@ label Error TypeError: Type argument 'BigInt' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'BigInt' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets index eeee8b412b..f98c301cda 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets @@ -18,4 +18,4 @@ function main(){ "hello": 1, } } -/* @@? 18:9 Error TypeError: Type '"hello"' is not compatible with type 'Double' at index 1 */ +/* @@? 18:9 Error Semantic error ESE0046: Type '"hello"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/record_dup_key_01.ets b/ets2panda/test/ast/parser/ets/record_dup_key_01.ets index 1a7a3bf605..7682c9dbfa 100644 --- a/ets2panda/test/ast/parser/ets/record_dup_key_01.ets +++ b/ets2panda/test/ast/parser/ets/record_dup_key_01.ets @@ -20,4 +20,4 @@ function main(){ 2: 3 } } -/* @@@ label Error TypeError: An object literal cannot multiple properties with same name */ +/* @@@ label Error Semantic error ESE0263: An object literal cannot multiple properties with same name */ diff --git a/ets2panda/test/ast/parser/ets/record_dup_key_02.ets b/ets2panda/test/ast/parser/ets/record_dup_key_02.ets index ef67909555..43b7955ed2 100644 --- a/ets2panda/test/ast/parser/ets/record_dup_key_02.ets +++ b/ets2panda/test/ast/parser/ets/record_dup_key_02.ets @@ -20,4 +20,4 @@ function main(){ "key2": 3 } } -/* @@@ label Error TypeError: An object literal cannot multiple properties with same name */ +/* @@@ label Error Semantic error ESE0263: An object literal cannot multiple properties with same name */ diff --git a/ets2panda/test/ast/parser/ets/record_init_check.ets b/ets2panda/test/ast/parser/ets/record_init_check.ets index 4c4eaffb81..0cb3f06b98 100644 --- a/ets2panda/test/ast/parser/ets/record_init_check.ets +++ b/ets2panda/test/ast/parser/ets/record_init_check.ets @@ -20,4 +20,4 @@ function main(){ 2: 2 } } -/* @@@ label Error TypeError: Object literal may only specify known properties */ +/* @@@ label Error Semantic error ESE0264: Object literal may only specify known properties */ diff --git a/ets2panda/test/ast/parser/ets/record_object_value.ets b/ets2panda/test/ast/parser/ets/record_object_value.ets index f46be86af2..28f4d55b08 100644 --- a/ets2panda/test/ast/parser/ets/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/record_object_value.ets @@ -57,7 +57,7 @@ function main(){ "Mary":["20", "30"] }; } -/* @@@ label Error TypeError: Type '"10"' is not compatible with type 'Double' at property 'age' */ -/* @@@ label1 Error TypeError: Type '"100"' is not compatible with type 'Double' at property 'salary' */ -/* @@@ label2 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named other */ +/* @@@ label Error Semantic error ESE0319: Type '"10"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label1 Error Semantic error ESE0319: Type '"100"' is not compatible with type 'Double' at property 'salary' */ +/* @@@ label2 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ diff --git a/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets b/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets index 5f86308441..3ca87b355a 100644 --- a/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets +++ b/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets @@ -19,5 +19,5 @@ function foo() { x(); } -/* @@? 17:19 Error TypeError: Variable 'y' is accessed before it's initialization. */ -/* @@? 18:9 Error TypeError: Circular dependency detected for identifier: y */ +/* @@? 17:19 Error Semantic error ESE0365: Variable 'y' is accessed before it's initialization. */ +/* @@? 18:9 Error Semantic error ESE0308: Circular dependency detected for identifier: y */ diff --git a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets index 25e4a6d0ea..2585fb2237 100644 --- a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets +++ b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets @@ -88,15 +88,15 @@ const _exported: ExportedType = _exportedStructure; export default _exported; -/* @@? 26:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 41:12 Error TypeError: No matching call signature for (...) */ -/* @@? 41:23 Error TypeError: need to specify target type for class composite */ -/* @@? 54:20 Error TypeError: No matching call signature for (...) */ -/* @@? 54:31 Error TypeError: need to specify target type for class composite */ -/* @@? 61:64 Error SyntaxError: Unexpected token '&'. */ -/* @@? 61:66 Error SyntaxError: Unexpected token '{'. */ -/* @@? 62:12 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 62:12 Error TypeError: Type name 'IndexableType' used in the wrong context */ -/* @@? 66:36 Error TypeError: Interfaces cannot extend classes, only other interfaces. */ -/* @@? 73:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 76:16 Error TypeError: Cannot cast type 'ExportedStructure' to 'Record Double|Record Double>>' */ +/* @@? 26:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 41:12 Error Semantic error ESE0127: No matching call signature for (...) */ +/* @@? 41:23 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 54:20 Error Semantic error ESE0127: No matching call signature for (...) */ +/* @@? 54:31 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 61:64 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 61:66 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 62:12 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 62:12 Error Semantic error ESE0144: Type name 'IndexableType' used in the wrong context */ +/* @@? 66:36 Error Semantic error ESE0378: Interfaces cannot extend classes, only other interfaces. */ +/* @@? 73:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 76:16 Error Semantic error ESE0326: Cannot cast type 'ExportedStructure' to 'Record Double|Record Double>>' */ diff --git a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets index 4f68534936..9c6e0df307 100644 --- a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets @@ -32,9 +32,9 @@ function main() { let x4: Required = /* @@ label4 */{i: 1.9}; } -/* @@@ label1 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label2 Error TypeError: Class property 'j' needs to be initialized for Required. */ -/* @@@ label2 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label3 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label4 Error TypeError: Class property 'j' needs to be initialized for Required. */ -/* @@@ label4 Error TypeError: Class property 'k' needs to be initialized for Required. */ +/* @@@ label1 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'j' needs to be initialized for Required. */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label3 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label4 Error Semantic error ESE0226: Class property 'j' needs to be initialized for Required. */ +/* @@@ label4 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets b/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets index 0243622ca6..5e5f62dc64 100644 --- a/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets +++ b/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets @@ -25,5 +25,5 @@ function main() { let x3: Required = /* @@ label2 */{j :"somestr", j :"somestr"}; } -/* @@@ label1 Error TypeError: type A has no property named K */ -/* @@@ label2 Error TypeError: Class property 'i' needs to be initialized for Required. */ +/* @@@ label1 Error Semantic error ESE0065: type A has no property named K */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'i' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/parser/ets/reserved_type.ets b/ets2panda/test/ast/parser/ets/reserved_type.ets index 91edf9e145..a2510fdab0 100644 --- a/ets2panda/test/ast/parser/ets/reserved_type.ets +++ b/ets2panda/test/ast/parser/ets/reserved_type.ets @@ -34,12 +34,12 @@ function main() { let n = new Partial() } -/* @@? 16:16 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 20:16 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 24:15 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 29:13 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 30:13 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 31:13 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 32:26 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 33:26 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 34:25 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 16:16 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 20:16 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 24:15 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 29:13 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 30:13 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 31:13 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 32:26 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 33:26 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 34:25 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ diff --git a/ets2panda/test/ast/parser/ets/rest_never.ets b/ets2panda/test/ast/parser/ets/rest_never.ets index dd17382ea1..14b8c8d05e 100644 --- a/ets2panda/test/ast/parser/ets/rest_never.ets +++ b/ets2panda/test/ast/parser/ets/rest_never.ets @@ -20,5 +20,5 @@ function main() { sum(...null!) } -/* @@? 20:9 Error TypeError: Spread expression can be applied only to array or tuple type, but 'never' is provided */ -/* @@? 20:12 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 20:9 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'never' is provided */ +/* @@? 20:12 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/rest_no_default.ets b/ets2panda/test/ast/parser/ets/rest_no_default.ets index 2964b29db0..21a1222282 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_default.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_default.ets @@ -15,5 +15,5 @@ function sum(...numbers: number = 0): number {} -/* @@? 16:35 Error SyntaxError: Rest parameter cannot have the default value. */ -/* @@? 16:36 Error SyntaxError: Identifier is needed here. */ +/* @@? 16:35 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ +/* @@? 16:36 Error Syntax error ESY0131: Identifier is needed here. */ diff --git a/ets2panda/test/ast/parser/ets/rest_no_optional.ets b/ets2panda/test/ast/parser/ets/rest_no_optional.ets index 2fe5e0e584..42553ae238 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_optional.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_optional.ets @@ -16,4 +16,4 @@ function sum(...numbers?: number[]): number {} -/* @@? 17:24 Error SyntaxError: Rest parameter cannot have the default value. */ +/* @@? 17:24 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets index b175b93357..11f4e03ce7 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets @@ -17,7 +17,7 @@ function hehe(...items: number[]/* @@ label */: void /* @@ label1 */{ console.log("aaaaaaaa") } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:49 Error SyntaxError: Unexpected token 'void'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:49 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets index 53d71208a0..f1f4fb3482 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets @@ -19,5 +19,5 @@ function sum(...numbers: [number, number, number]): number { /* @@ label */sum() -/* @@@ label Error TypeError: Expected 3 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0124: Expected 3 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets index 2d75bc7518..fd6a7f08da 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets @@ -19,5 +19,5 @@ function sum(...numbers: [number, number, number]): number { /* @@ label */sum(10, 20, 30, 40) -/* @@@ label Error TypeError: Expected 3 arguments, got 4. */ -/* @@@ label Error TypeError: No matching call signature for sum(Int, Int, Int, Int) */ +/* @@@ label Error Semantic error ESE0124: Expected 3 arguments, got 4. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int, Int) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets index ac4c0fed73..2a311f79e5 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets @@ -19,5 +19,5 @@ function sum(...numbers: [number, number, number]): number { /* @@ label1 */sum(10, 20, /* @@ label2 */"one") -/* @@@ label1 Error TypeError: No matching call signature for sum(Double, Double, "one") */ -/* @@@ label2 Error TypeError: Type '"one"' is not compatible with type 'Double' at index 3 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for sum(Double, Double, "one") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"one"' is not compatible with type 'Double' at index 3 */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets index b81323e196..62164ffe94 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets @@ -22,12 +22,12 @@ function sum(a: int, ...numbers: [number, number, number]): number { /* @@ label3 */sum(11,12,13) /* @@ label4 */sum(11,12,13,15,16) -/* @@@ label1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 4 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Expected 4 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching call signature for sum(Int) */ -/* @@@ label3 Error TypeError: Expected 4 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching call signature for sum(Int, Int, Int) */ -/* @@@ label4 Error TypeError: Expected 4 arguments, got 5. */ -/* @@@ label4 Error TypeError: No matching call signature for sum(Int, Int, Int, Int, Int) */ +/* @@@ label1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 4 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 4 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for sum(Int) */ +/* @@@ label3 Error Semantic error ESE0124: Expected 4 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int) */ +/* @@@ label4 Error Semantic error ESE0124: Expected 4 arguments, got 5. */ +/* @@@ label4 Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int, Int, Int) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets index c958b2efe1..8680e0aff4 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets @@ -22,5 +22,5 @@ class C { /* @@ label */(new C()).foo() -/* @@@ label Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets index db95f4b9b0..e2c69ee839 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets @@ -22,5 +22,5 @@ class C { /* @@ label */(new C()).foo(new A) -/* @@@ label Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label Error TypeError: No matching call signature for foo(A) */ +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(A) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets index 5750476b45..22d3d88693 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets @@ -22,5 +22,5 @@ class C { /* @@ label */(new C()).foo(new A, new B, new B) -/* @@@ label Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label Error TypeError: No matching call signature for foo(A, B, B) */ +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(A, B, B) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets index 5b51900596..95a9657a62 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets @@ -24,9 +24,9 @@ class C { /* @@ label2 */C.foo(new A) /* @@ label3 */C.foo(new A, new B, new B) -/* @@@ label1 Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(A) */ -/* @@@ label3 Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching call signature for foo(A, B, B) */ +/* @@@ label1 Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(A) */ +/* @@@ label3 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo(A, B, B) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets index 46f794926f..16c7f13ca6 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets @@ -34,14 +34,14 @@ function main() { /* @@ label3 */new C(new A, new B, new B) } -/* @@@ label1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 3 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching construct signature */ -/* @@@ label2 Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label2 Error TypeError: Expected 3 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching construct signature for rest_parameter_13.C(A) */ -/* @@? 33:37 Error TypeError: Type 'A' is not compatible with type 'Int' at index 1 */ -/* @@@ label3 Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching construct signature for rest_parameter_13.C(A, B, B) */ -/* @@? 34:37 Error TypeError: Type 'A' is not compatible with type 'Int' at index 1 */ +/* @@@ label1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 3 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching construct signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0124: Expected 3 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching construct signature for rest_parameter_13.C(A) */ +/* @@? 33:37 Error Semantic error ESE0046: Type 'A' is not compatible with type 'Int' at index 1 */ +/* @@@ label3 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching construct signature for rest_parameter_13.C(A, B, B) */ +/* @@? 34:37 Error Semantic error ESE0046: Type 'A' is not compatible with type 'Int' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets index 73bbbb9eb0..2bfc382021 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets @@ -21,5 +21,5 @@ class B { moo(/* @@ label2 */...i: A) {} } -/* @@@ label1 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@@ label2 Error SyntaxError: Rest parameter should be either array or tuple type. */ +/* @@@ label1 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@@ label2 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ diff --git a/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets b/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets index f67d3dbe0d..4f212ad020 100644 --- a/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets +++ b/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets @@ -22,5 +22,5 @@ function main(): int { function test():string { /* @@ label1 */return; } -/* @@@ label Error TypeError: Type 'String' is not compatible with the enclosing method's return type 'Int' */ -/* @@@ label1 Error TypeError: Missing return value. */ +/* @@@ label Error Semantic error ESE0091: Type 'String' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label1 Error Semantic error ESE0032: Missing return value. */ diff --git a/ets2panda/test/ast/parser/ets/return_type_non_match.ets b/ets2panda/test/ast/parser/ets/return_type_non_match.ets index 5a8539550b..5c456953f2 100644 --- a/ets2panda/test/ast/parser/ets/return_type_non_match.ets +++ b/ets2panda/test/ast/parser/ets/return_type_non_match.ets @@ -15,5 +15,5 @@ function main():undefined { return false; } - /* @@? 16:4 Error TypeError: Bad return type, main enable only void or int type. */ -/* @@? 16:11 Error TypeError: Type 'Boolean' is not compatible with the enclosing method's return type 'undefined' */ + /* @@? 16:4 Error Semantic error ESE0088: Bad return type, main enable only void or int type. */ +/* @@? 16:11 Error Semantic error ESE0091: Type 'Boolean' is not compatible with the enclosing method's return type 'undefined' */ diff --git a/ets2panda/test/ast/parser/ets/return_while_warning.ets b/ets2panda/test/ast/parser/ets/return_while_warning.ets index 08ae4d2f3a..fd76ee34cb 100644 --- a/ets2panda/test/ast/parser/ets/return_while_warning.ets +++ b/ets2panda/test/ast/parser/ets/return_while_warning.ets @@ -19,4 +19,4 @@ function main(): void { } } -/* @@? 17:19 Warning Warning: Unreachable statement. */ \ No newline at end of file +/* @@? 17:19 Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/returntype_override_object.ets b/ets2panda/test/ast/parser/ets/returntype_override_object.ets index be73db7d84..ee79b4e7f7 100644 --- a/ets2panda/test/ast/parser/ets/returntype_override_object.ets +++ b/ets2panda/test/ast/parser/ets/returntype_override_object.ets @@ -25,5 +25,5 @@ class Derived extends Base { } } -/* @@? 23:17 Error TypeError: foo(): Object in Derived cannot override foo(): Base in Base because overriding return type is not compatible with the other return type. */ -/* @@? 23:17 Error TypeError: Method foo(): Object in Derived not overriding any method */ \ No newline at end of file +/* @@? 23:17 Error Semantic error ESE0141: foo(): Object in Derived cannot override foo(): Base in Base because overriding return type is not compatible with the other return type. */ +/* @@? 23:17 Error Semantic error ESE0136: Method foo(): Object in Derived not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets b/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets index c5e9ad05f3..047a9c1568 100644 --- a/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets +++ b/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets @@ -21,4 +21,4 @@ function A(a: string) { } } -/* @@@ label Error TypeError: Unresolved reference c */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0143: Unresolved reference c */ diff --git a/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets b/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets index bb493f22fa..0ecec68922 100644 --- a/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets +++ b/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets @@ -19,4 +19,4 @@ function bar(): int { return 1; } -/* @@@ label Error SyntaxError: Cannot find name 'foo' to export. */ +/* @@@ label Error Syntax error ESY0279: Cannot find name 'foo' to export. */ diff --git a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets index f7e6f36d16..a54ea4f4c4 100644 --- a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets +++ b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets @@ -17,5 +17,5 @@ class SomeClass { $_set (index: string): SomeClass { return this } } -/* @@? 17:5 Error SyntaxError: The special predefined method '$_set' should have exactly two required parameter. */ -/* @@? 17:11 Error TypeError: 'The special predefined method '$_set' should have void return type. */ +/* @@? 17:5 Error Syntax error ESY0222: The special predefined method '$_set' should have exactly two required parameter. */ +/* @@? 17:11 Error Semantic error ESE0094: 'The special predefined method '$_set' should have void return type. */ diff --git a/ets2panda/test/ast/parser/ets/setter_native.ets b/ets2panda/test/ast/parser/ets/setter_native.ets index 1c9aa8b145..94c324728f 100644 --- a/ets2panda/test/ast/parser/ets/setter_native.ets +++ b/ets2panda/test/ast/parser/ets/setter_native.ets @@ -20,4 +20,4 @@ class Door { } } -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets b/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets index a7f211b961..8fa42e0629 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets @@ -17,5 +17,5 @@ set value(a: int, b: int, c : int)/* @@ label */; } - /* @@@ label Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 1:3 Error TypeError: Class 'Set' is already defined with different type. */ + /* @@? 1:3 Error Semantic error ESE0350: Class 'Set' is already defined with different type. */ +/* @@@ label Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ diff --git a/ets2panda/test/ast/parser/ets/setter_with_non_void.ets b/ets2panda/test/ast/parser/ets/setter_with_non_void.ets index e42ce4c094..30a60c3258 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_non_void.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_non_void.ets @@ -26,4 +26,4 @@ function main(): void { apple.color = 10; } -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/parser/ets/setter_with_return_type.ets b/ets2panda/test/ast/parser/ets/setter_with_return_type.ets index f0423da780..1c25894866 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_return_type.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_return_type.ets @@ -25,4 +25,4 @@ interface I{ class D extends C implements I{ } -/* @@? 22:9 Error SyntaxError: Setter must not have return type even if it is void. */ +/* @@? 22:9 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets index 29a7abba36..a8316cc14b 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets @@ -17,6 +17,6 @@ export a as A let a = 2; -/* @@? 16:10 Error SyntaxError: Unexpected token 'as'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 16:13 Error TypeError: Unresolved reference A */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'as'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference A */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets index 18b046b725..fd31e9fb55 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets @@ -15,4 +15,4 @@ export /* @@ label */(5442 + 41 * 39 - 10) -/* @@@ label Error SyntaxError: Export is allowed only for declarations. */ +/* @@@ label Error Syntax error ESY0043: Export is allowed only for declarations. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets index 6b49070609..a1b179af93 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets @@ -12,7 +12,7 @@ export a /* @@ label */from /* @@ label1 */"./type" -/* @@? 13:8 Error SyntaxError: Cannot find name 'a' to export. */ -/* @@? 13:24 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 13:24 Error TypeError: Unresolved reference from */ -/* @@? 13:44 Error SyntaxError: Unexpected token './type'. */ +/* @@? 13:8 Error Syntax error ESY0279: Cannot find name 'a' to export. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token './type'. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets index d56bfbcfc7..54b4922f52 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets @@ -15,4 +15,4 @@ export /* @@ label */(a: int) => { return a } -/* @@@ label Error SyntaxError: Export is allowed only for declarations. */ +/* @@@ label Error Syntax error ESY0043: Export is allowed only for declarations. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets index e25119a540..a174d005fd 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets @@ -18,5 +18,5 @@ export v,m let v = 1 let m = 2 -/* @@? 16:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'm'. */ +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'm'. */ diff --git a/ets2panda/test/ast/parser/ets/single_statement_1.ets b/ets2panda/test/ast/parser/ets/single_statement_1.ets index 64d355e22c..1c077506b2 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_1.ets @@ -20,14 +20,14 @@ function main(): int { let hehe: int = 10 } -/* @@@ label1 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 18:17 Error TypeError: Unresolved reference aaaa */ -/* @@@ label2 Error SyntaxError: Unexpected token ')'. */ +/* @@@ label1 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 18:17 Error Semantic error ESE0143: Unresolved reference aaaa */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/single_statement_2.ets b/ets2panda/test/ast/parser/ets/single_statement_2.ets index 996fdd7fd4..bf8d154183 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_2.ets @@ -20,14 +20,14 @@ function main(): int { let hehe: int = 10 } -/* @@@ label1 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 18:17 Error TypeError: Unresolved reference aaaa */ -/* @@@ label2 Error SyntaxError: Unexpected token ')'. */ +/* @@@ label1 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 18:17 Error Semantic error ESE0143: Unresolved reference aaaa */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/special_signatures.ets b/ets2panda/test/ast/parser/ets/special_signatures.ets index 811f62bf38..a6f4aeac51 100644 --- a/ets2panda/test/ast/parser/ets/special_signatures.ets +++ b/ets2panda/test/ast/parser/ets/special_signatures.ets @@ -17,6 +17,6 @@ interface Document { createElement(tagName: "div"): /* @@ label */HTMLDivElement; createElement(tagName: "span"): HTMLSpanElement; } -/* @@@ label Error TypeError: Cannot find type 'HTMLDivElement'. */ -/* @@? 18:35 Error TypeError: Cannot find type 'HTMLSpanElement'. */ -/* @@? 18:3 Error TypeError: Function createElement with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'HTMLDivElement'. */ +/* @@? 18:3 Error Semantic error ESE0131: Function createElement with this assembly signature already declared. */ +/* @@? 18:35 Error Semantic error ESE0371: Cannot find type 'HTMLSpanElement'. */ diff --git a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets index 597d40da24..6037223641 100644 --- a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets @@ -20,7 +20,7 @@ function main() { let y2: [boolean, int, string] = /* @@ label2 */[true, /* @@ label3 */...x2] } -/* @@? 18:43 Error TypeError: Initializer has 1 elements, but tuple requires 2 */ -/* @@? 18:59 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 20:53 Error TypeError: Initializer has 2 elements, but tuple requires 3 */ -/* @@? 20:75 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 3 */ +/* @@@ label3 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets index 2259dc4920..2a8b11077d 100644 --- a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets +++ b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets @@ -20,4 +20,4 @@ function main() { } -/* @@? 19:23 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Object|null|undefined' is provided */ +/* @@? 19:23 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'Object|null|undefined' is provided */ diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets index 26483b2780..967e78cfa8 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets @@ -21,7 +21,4 @@ let args_tuple: [number, number] = [0, 1] let args_array: number[] = [2, 3] /* @@ label2 */foo(4, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo(Int, [Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Int, Double) */ +/* @@? 17:3 Error Semantic error ESE0000: Cannot find name console */ diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets index a5407b76f9..af26daab37 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets @@ -29,11 +29,4 @@ args_tuple = [0, 1] args_array = [2, 3] /* @@ label4 */moo(2, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo([Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Double) */ -/* @@@ label3 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label3 Error TypeError: No matching call signature for moo(Int, [Double, Double]) */ -/* @@@ label4 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label4 Error TypeError: No matching call signature for moo(Int, Double) */ +/* @@? 17:3 Error Semantic error ESE0000: Cannot find name console */ diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets index 89d5215fd1..247e44c623 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets @@ -29,11 +29,4 @@ args_tuple = [0, 1] args_array = [2, 3] /* @@ label4 */moo(2, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo([Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Double) */ -/* @@@ label3 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label3 Error TypeError: No matching call signature for moo(Int, [Double, Double]) */ -/* @@@ label4 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label4 Error TypeError: No matching call signature for moo(Int, Double) */ +/* @@? 17:3 Error Semantic error ESE0000: Cannot find name console */ diff --git a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets index 346e038a11..8059fa89a0 100644 --- a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets +++ b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets @@ -26,12 +26,12 @@ function main() { let a2 = new A(...nums); } -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:31 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 18:39 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:41 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 19:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 19:14 Error TypeError: Variable 'fld' has already been declared. */ -/* @@? 19:20 Error TypeError: Unresolved reference p */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ \ No newline at end of file +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:31 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 18:39 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:41 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 19:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 19:14 Error Semantic error ESE0351: Variable 'fld' has already been declared. */ +/* @@? 19:20 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets index 6c37863a77..d439d3ab0e 100644 --- a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets +++ b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets @@ -26,4 +26,4 @@ function main() { let a2 = new A(1, 1.0, ...nums); } -/* @@@ label Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ +/* @@@ label Error Syntax error ESY0015: Both optional and rest parameters are not allowed in function's parameter list. */ diff --git a/ets2panda/test/ast/parser/ets/static_block.ets b/ets2panda/test/ast/parser/ets/static_block.ets index 0543023636..7714b5ea85 100644 --- a/ets2panda/test/ast/parser/ets/static_block.ets +++ b/ets2panda/test/ast/parser/ets/static_block.ets @@ -21,5 +21,5 @@ class A { } } -/* @@? 20:12 Error SyntaxError: Unexpected return value. */ -/* @@? 20:12 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 20:12 Error Syntax error ESY0287: Unexpected return value. */ +/* @@? 20:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ diff --git a/ets2panda/test/ast/parser/ets/static_field_1.ets b/ets2panda/test/ast/parser/ets/static_field_1.ets index a711e41245..2a7da80dae 100644 --- a/ets2panda/test/ast/parser/ets/static_field_1.ets +++ b/ets2panda/test/ast/parser/ets/static_field_1.ets @@ -18,4 +18,4 @@ class A { } new A()./* @@ label */bar -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_2.ets b/ets2panda/test/ast/parser/ets/static_field_2.ets index e0457f45a5..547ede93f3 100644 --- a/ets2panda/test/ast/parser/ets/static_field_2.ets +++ b/ets2panda/test/ast/parser/ets/static_field_2.ets @@ -18,4 +18,4 @@ class A { } (new A() as A)./* @@ label */bar -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_3.ets b/ets2panda/test/ast/parser/ets/static_field_3.ets index 2d3fd4b3a3..44907ea45c 100644 --- a/ets2panda/test/ast/parser/ets/static_field_3.ets +++ b/ets2panda/test/ast/parser/ets/static_field_3.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo; } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_4.ets b/ets2panda/test/ast/parser/ets/static_field_4.ets index f012dcab61..1882ece17f 100644 --- a/ets2panda/test/ast/parser/ets/static_field_4.ets +++ b/ets2panda/test/ast/parser/ets/static_field_4.ets @@ -26,5 +26,5 @@ function main() { f()!./* @@ label2 */foo } -/* @@@ label1 Error TypeError: 'foo' is a static property of 'A' */ -/* @@@ label2 Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label1 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ +/* @@@ label2 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_5.ets b/ets2panda/test/ast/parser/ets/static_field_5.ets index aabed3382f..d6a8c93337 100644 --- a/ets2panda/test/ast/parser/ets/static_field_5.ets +++ b/ets2panda/test/ast/parser/ets/static_field_5.ets @@ -47,4 +47,4 @@ function main() { d.c.b.a./* @@ label */boo } -/* @@@ label Error TypeError: 'boo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'boo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_1.ets b/ets2panda/test/ast/parser/ets/static_func_call_1.ets index a05228f554..651810539a 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_1.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_1.ets @@ -18,4 +18,4 @@ class A { foo() { /* @@ label */bar(); } } -/* @@@ label Error TypeError: Static property 'bar' must be accessed through it's class 'A' */ +/* @@@ label Error Semantic error ESE0173: Static property 'bar' must be accessed through it's class 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_10.ets b/ets2panda/test/ast/parser/ets/static_func_call_10.ets index 0ece7d40e9..21d58130ec 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_10.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_10.ets @@ -47,4 +47,4 @@ function main() { d.c.b.a./* @@ label */foo() } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_2.ets b/ets2panda/test/ast/parser/ets/static_func_call_2.ets index 775353d917..458ce5dc91 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_2.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_2.ets @@ -18,4 +18,4 @@ class A { foo() { this./* @@ label */bar(); } } -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_3.ets b/ets2panda/test/ast/parser/ets/static_func_call_3.ets index 6a017aa3a8..9f6d3dd8ed 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_3.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_3.ets @@ -20,4 +20,4 @@ class A { let a = new A() a./* @@ label */bar() -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_4.ets b/ets2panda/test/ast/parser/ets/static_func_call_4.ets index c6ed5fb46d..aba2c94c49 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_4.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_4.ets @@ -19,4 +19,4 @@ class A { new A()./* @@ label */bar() -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_5.ets b/ets2panda/test/ast/parser/ets/static_func_call_5.ets index b9b671f2df..476110bbe1 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_5.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_5.ets @@ -24,4 +24,4 @@ function main() { bb./* @@ label */foo() } -/* @@@ label Error TypeError: 'foo' is a static property of 'B' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'B' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_6.ets b/ets2panda/test/ast/parser/ets/static_func_call_6.ets index b0e31af436..4cc9d69ba6 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_6.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_6.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'B' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'B' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_7.ets b/ets2panda/test/ast/parser/ets/static_func_call_7.ets index 70acfe1cd0..ab9a84e477 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_7.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_7.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_8.ets b/ets2panda/test/ast/parser/ets/static_func_call_8.ets index 0511949959..78340eefe1 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_8.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_8.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo(); } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_9.ets b/ets2panda/test/ast/parser/ets/static_func_call_9.ets index edd4d973c6..d704d0bc0d 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_9.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_9.ets @@ -26,5 +26,5 @@ function main() { f()!./* @@ label2 */foo() } -/* @@@ label1 Error TypeError: 'foo' is a static property of 'A' */ -/* @@@ label2 Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label1 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ +/* @@@ label2 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_function_override_4.ets b/ets2panda/test/ast/parser/ets/static_function_override_4.ets index 65cbbbc108..e5f4c33088 100644 --- a/ets2panda/test/ast/parser/ets/static_function_override_4.ets +++ b/ets2panda/test/ast/parser/ets/static_function_override_4.ets @@ -21,4 +21,4 @@ class BClass extends AClass { override bar/* @@ label */(): void {} } -/* @@@ label Error TypeError: Method bar(): void in BClass not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method bar(): void in BClass not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets index fb2f82596a..abb8c08272 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets @@ -23,4 +23,4 @@ class A /* @@ label */{ } } -/* @@@ label Error TypeError: Static $_invoke method and static $_instantiate method both exist in class/interface A is not allowed. */ +/* @@@ label Error Semantic error ESE0221: Static $_invoke method and static $_instantiate method both exist in class/interface A is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets index 75f6e923d8..ad9aad40a2 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets @@ -25,4 +25,4 @@ class B extends A /* @@ label */{ } } -/* @@@ label Error TypeError: Static $_invoke method and static $_instantiate method both exist in class/interface B is not allowed. */ +/* @@@ label Error Semantic error ESE0221: Static $_invoke method and static $_instantiate method both exist in class/interface B is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets index 094ce9a2ce..8a838e8f17 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets @@ -23,5 +23,5 @@ function main() { A() } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching call signature */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets index 3956680e07..d4bc5f555f 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets @@ -21,5 +21,5 @@ function main() { A() } -/* @@? 21:5 Error TypeError: No static $_invoke method and static $_instantiate method in A. A() is not allowed. */ -/* @@? 21:5 Error TypeError: Type 'A' has no call signatures. */ +/* @@? 21:5 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in A. A() is not allowed. */ +/* @@? 21:5 Error Semantic error ESE0002: Type 'A' has no call signatures. */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets index 825c8316ad..05637c658f 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 6703e37295..81a6e2e6a5 100644 --- a/ets2panda/test/ast/parser/ets/string_literal_01.ets +++ b/ets2panda/test/ast/parser/ets/string_literal_01.ets @@ -15,6 +15,6 @@ let x = "\u{}"; -/* @@? 16:9 Error SyntaxError: Hexadecimal digit expected. */ -/* @@? 16:9 Error SyntaxError: Invalid Unicode escape. */ -/* @@? 16:9 Error SyntaxError: Newline is not allowed in strings */ +/* @@? 16:9 Error Syntax error ESY0248: Hexadecimal digit expected. */ +/* @@? 16:9 Error Syntax error ESY0091: Invalid Unicode escape. */ +/* @@? 16:9 Error Syntax error ESY0265: Newline is not allowed in strings */ diff --git a/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets b/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets index d265e85557..14bc53a12a 100644 --- a/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets +++ b/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets @@ -15,8 +15,8 @@ let x = "literal str" as const -/* @@? 16:26 Error SyntaxError: 'as const' assertion is not supported. */ -/* @@? 16:26 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 23:1 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 23:1 Error TypeError: Missing initializer in const declaration */ +/* @@? 16:26 Error Syntax error ESY0311: 'as const' assertion is not supported. */ +/* @@? 16:26 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 23:1 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 23:1 Error Semantic error ESE0363: Missing initializer in const declaration */ diff --git a/ets2panda/test/ast/parser/ets/struct_export1.ets b/ets2panda/test/ast/parser/ets/struct_export1.ets index 6fa897ef35..c7f21cae90 100644 --- a/ets2panda/test/ast/parser/ets/struct_export1.ets +++ b/ets2panda/test/ast/parser/ets/struct_export1.ets @@ -18,4 +18,4 @@ export struct A { } -/* @@? 16:8 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_extends_class.ets b/ets2panda/test/ast/parser/ets/struct_extends_class.ets index 42709eee1d..fa3aa49e19 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_class.ets @@ -22,4 +22,4 @@ struct B extends A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets index 719f558829..81700a5b9c 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets @@ -22,5 +22,5 @@ struct B extends A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:18 Error TypeError: The super type of 'B' class is not extensible. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:18 Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets index af090a527e..94b845cb1c 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets @@ -22,6 +22,6 @@ struct B extends A { } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:18 Error TypeError: struct B is not extensible. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:18 Error Semantic error ESE0177: struct B is not extensible. */ diff --git a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets index 31481d72fa..b0c9d84770 100644 --- a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets @@ -22,4 +22,4 @@ struct B implements A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_in_class.ets b/ets2panda/test/ast/parser/ets/struct_in_class.ets index 275cf87934..535cafe362 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_class.ets @@ -21,5 +21,5 @@ class A { } -/* @@? 18:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 18:5 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 18:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 18:5 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_in_interface.ets b/ets2panda/test/ast/parser/ets/struct_in_interface.ets index 1d6aafc6bf..bf6e8b7e49 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_interface.ets @@ -20,14 +20,14 @@ interface A { } } -/* @@? 17:16 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:12 Error TypeError: Cannot find type 'B'. */ -/* @@? 18:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:14 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:20 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 20:5 Error SyntaxError: Identifier expected. */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:16 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:12 Error Semantic error ESE0371: Cannot find type 'B'. */ +/* @@? 18:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:14 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:20 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 19:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:22 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 20:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/struct_in_struct.ets b/ets2panda/test/ast/parser/ets/struct_in_struct.ets index 96406ac56d..2cb20443bf 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_struct.ets @@ -21,6 +21,6 @@ struct A { } -/* @@? 18:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 18:5 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 18:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 18:5 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets index cdc157dbd5..a27d39ace4 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets @@ -20,4 +20,4 @@ abstract struct A { } } -/* @@? 16:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets index eae483b3e3..2197a6bb53 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets @@ -19,4 +19,4 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Illegal start of STRUCT expression. */ +/* @@@ label Error Syntax error ESY0040: Illegal start of STRUCT expression. */ diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets index 4ef929e9e6..7dec2c63c7 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets @@ -19,5 +19,5 @@ struct A { } } -/* @@? 17:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 17:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/struct_keywords1.ets b/ets2panda/test/ast/parser/ets/struct_keywords1.ets index 7dcd3f5ee4..61c960c2a9 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords1.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords1.ets @@ -54,4 +54,4 @@ struct AA { } } -/* @@? 42:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 42:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_keywords2.ets b/ets2panda/test/ast/parser/ets/struct_keywords2.ets index 01c146278e..9a19ecb7c8 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords2.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords2.ets @@ -54,4 +54,4 @@ struct B { } } -/* @@? 41:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 41:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_keywords3.ets b/ets2panda/test/ast/parser/ets/struct_keywords3.ets index 93de56a5c0..fa0050389f 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords3.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords3.ets @@ -83,5 +83,5 @@ struct Second { } -/* @@? 58:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 71:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 58:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 71:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets index 8f03d67f10..ad4d25ff74 100644 --- a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets +++ b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets @@ -31,4 +31,4 @@ struct A { } -/* @@? 28:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 28:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets b/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets index dadfaf733a..12a088125b 100644 --- a/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets +++ b/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets @@ -25,5 +25,5 @@ struct A { } -/* @@? 22:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:2 Error TypeError: Cannot find type 'Component'. */ +/* @@? 20:2 Error Semantic error ESE0371: Cannot find type 'Component'. */ +/* @@? 22:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/superInConstructor1.ets b/ets2panda/test/ast/parser/ets/superInConstructor1.ets index e1666bd872..6be77befb0 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor1.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor1.ets @@ -34,4 +34,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/superInConstructor2.ets b/ets2panda/test/ast/parser/ets/superInConstructor2.ets index 6afa6f5182..72e347325e 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor2.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor2.ets @@ -38,4 +38,4 @@ function alma(param: int) : int { return param; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/superInConstructor3.ets index 2cbd62e5c4..641ccf9658 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor3.ets @@ -44,4 +44,4 @@ function foo(arg : A) { return arg; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/superStaticCall.ets b/ets2panda/test/ast/parser/ets/superStaticCall.ets index 119114d65c..e884297b00 100644 --- a/ets2panda/test/ast/parser/ets/superStaticCall.ets +++ b/ets2panda/test/ast/parser/ets/superStaticCall.ets @@ -30,4 +30,4 @@ function main() : void { x.alma(); } -/* @@@ label Error TypeError: 'korte' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'korte' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/super_field.ets b/ets2panda/test/ast/parser/ets/super_field.ets index 680e8dcaf7..2590c04c95 100644 --- a/ets2panda/test/ast/parser/ets/super_field.ets +++ b/ets2panda/test/ast/parser/ets/super_field.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Class field 'value' defined by the parent class is not accessible in the child class via super. */ +/* @@@ label Error Semantic error ESE0377: Class field 'value' defined by the parent class is not accessible in the child class via super. */ diff --git a/ets2panda/test/ast/parser/ets/switch_alive_2.ets b/ets2panda/test/ast/parser/ets/switch_alive_2.ets index 59a09de8ca..f0f7b446b5 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_2.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_2.ets @@ -24,4 +24,4 @@ function /* @@ label */main(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/switch_alive_3.ets b/ets2panda/test/ast/parser/ets/switch_alive_3.ets index 8dd956bacc..89d8a4307a 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_3.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_3.ets @@ -26,4 +26,4 @@ function main(): int { return 0; } -/* @@@ label Warning Warning: Possible fall-through into case */ +/* @@@ label Warning Warning W0020: Possible fall-through into case */ diff --git a/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets index 9cee2e2015..2b4e7fafe9 100644 --- a/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets @@ -26,4 +26,4 @@ function main() { } } -/* @@? 20:28 Error TypeError: Switch case type 'int' is not comparable to discriminant type 'char' */ +/* @@? 20:28 Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum.ets b/ets2panda/test/ast/parser/ets/switch_enum.ets index ecccc8cdae..fc2319b960 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum.ets @@ -24,4 +24,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum2.ets b/ets2panda/test/ast/parser/ets/switch_enum2.ets index 3bb5002d1d..bd34690403 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum2.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum2.ets @@ -23,4 +23,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Switch case type 'int' is not comparable to discriminant type 'Color' */ +/* @@@ label Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets index d1638ba35d..7300f81389 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets @@ -29,4 +29,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets index 1c4623761c..2c30a1c45b 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets @@ -24,4 +24,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_invalid.ets b/ets2panda/test/ast/parser/ets/switch_invalid.ets index 7c72bea595..8f48b513cc 100644 --- a/ets2panda/test/ast/parser/ets/switch_invalid.ets +++ b/ets2panda/test/ast/parser/ets/switch_invalid.ets @@ -16,52 +16,52 @@ switch:[11](q): [12]{: [13]case: [14]1:: [15]{: [16]q: [17] +=: [18]2;: [38]try: [39]{: [40]s: [41] +=: [42]"cba";: [43]q: [44] +=: [45]5;: [46]throw: [98] -/* @@? 16:7 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:7 Error SyntaxError: Expected '(', got ':'. */ -/* @@? 16:7 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:7 Error TypeError: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ -/* @@? 16:15 Error SyntaxError: Expected '{', got ':'. */ -/* @@? 16:15 Error SyntaxError: Expected ')', got ':'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token ':', expected 'case' or 'default'. */ -/* @@? 16:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:22 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:28 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:32 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:38 Error SyntaxError: Unexpected token '1'. */ -/* @@? 16:39 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:40 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:40 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:47 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:47 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:53 Error SyntaxError: Unexpected token 'q'. */ -/* @@? 16:56 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:56 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:61 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 16:63 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:69 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:71 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:71 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:5 Error SyntaxError: Unexpected token 'try'. */ -/* @@? 17:5 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 17:8 Error SyntaxError: Expected '{', got ':'. */ -/* @@? 17:8 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:15 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token 's'. */ -/* @@? 17:24 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:29 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 17:31 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:37 Error SyntaxError: Unexpected token 'cba'. */ -/* @@? 17:43 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:49 Error SyntaxError: Unexpected token 'q'. */ -/* @@? 17:52 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:57 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 17:59 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:65 Error SyntaxError: Unexpected token '5'. */ -/* @@? 17:67 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:73 Error SyntaxError: Unexpected token 'throw'. */ -/* @@? 17:78 Error SyntaxError: Unexpected token ':'. */ -/* @@? 68:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:7 Error Syntax error ESY0230: Expected '(', got ':'. */ +/* @@? 16:7 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:7 Error Semantic error ESE0162: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ +/* @@? 16:15 Error Syntax error ESY0230: Expected '{', got ':'. */ +/* @@? 16:15 Error Syntax error ESY0230: Expected ')', got ':'. */ +/* @@? 16:15 Error Syntax error ESY0231: Unexpected token ':', expected 'case' or 'default'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:22 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:32 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:38 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 16:39 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:40 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:40 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:47 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:47 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:53 Error Syntax error ESY0227: Unexpected token 'q'. */ +/* @@? 16:56 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:56 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:61 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 16:63 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:69 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:71 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:71 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token 'try'. */ +/* @@? 17:5 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 17:8 Error Syntax error ESY0230: Expected '{', got ':'. */ +/* @@? 17:8 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token 's'. */ +/* @@? 17:24 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:29 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 17:31 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:37 Error Syntax error ESY0227: Unexpected token 'cba'. */ +/* @@? 17:43 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:49 Error Syntax error ESY0227: Unexpected token 'q'. */ +/* @@? 17:52 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:57 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 17:59 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:65 Error Syntax error ESY0227: Unexpected token '5'. */ +/* @@? 17:67 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:73 Error Syntax error ESY0227: Unexpected token 'throw'. */ +/* @@? 17:78 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 68:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets index dd4f092bca..2595884423 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets @@ -40,5 +40,5 @@ function main() { } } -/* @@@ label Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ -/* @@@ label1 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label1 Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets index 1d5b8815e2..40fd4db179 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets @@ -40,4 +40,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets index 74b1b4f4a6..5ca788e419 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets @@ -32,4 +32,4 @@ function main() { } } -/* @@? 27:28 Error TypeError: Switch case type 'int' is not comparable to discriminant type 'char' */ +/* @@? 27:28 Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' */ diff --git a/ets2panda/test/ast/parser/ets/swtich_not_const.ets b/ets2panda/test/ast/parser/ets/swtich_not_const.ets index e01c4e2474..263dba3e34 100644 --- a/ets2panda/test/ast/parser/ets/swtich_not_const.ets +++ b/ets2panda/test/ast/parser/ets/swtich_not_const.ets @@ -24,4 +24,4 @@ function main() { } } -/* @@@ label Error TypeError: Constant expression required */ +/* @@@ label Error Semantic error ESE0163: Constant expression required */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias1.ets b/ets2panda/test/ast/parser/ets/test_type_alias1.ets index e1f3d4cf4f..209d0be595 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias1.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias1.ets @@ -15,7 +15,7 @@ type 5 = number; -/* @@? 16:1 Error TypeError: Unresolved reference type */ -/* @@? 16:6 Error SyntaxError: Unexpected token '5'. */ -/* @@? 16:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:8 Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 16:6 Error Syntax error ESY0227: Unexpected token '5'. */ +/* @@? 16:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:8 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias10.ets b/ets2panda/test/ast/parser/ets/test_type_alias10.ets index 79ed9bd2d0..efb0f63a28 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias10.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias10.ets @@ -16,4 +16,4 @@ type firstType = secondType; /* @@ label */type secondType = firstType; -/* @@@ label Error TypeError: Circular type alias reference */ +/* @@@ label Error Semantic error ESE0311: Circular type alias reference */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias2.ets b/ets2panda/test/ast/parser/ets/test_type_alias2.ets index 7a71e94ce3..a91c309f8b 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias2.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias2.ets @@ -15,4 +15,4 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: Expected '=', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0230: Expected '=', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias3.ets b/ets2panda/test/ast/parser/ets/test_type_alias3.ets index 3ff4cbb38c..7788c8702d 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias3.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias3.ets @@ -15,4 +15,4 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Invalid Type. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias4.ets b/ets2panda/test/ast/parser/ets/test_type_alias4.ets index d7fc3f50d8..2213c72dc2 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias4.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias4.ets @@ -16,4 +16,4 @@ type x = int; type /* @@ label */x = double; -/* @@@ label Error TypeError: Variable 'x' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'x' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/thisInConstructor.ets b/ets2panda/test/ast/parser/ets/thisInConstructor.ets index 652a510e20..6fcbcbaf1c 100644 --- a/ets2panda/test/ast/parser/ets/thisInConstructor.ets +++ b/ets2panda/test/ast/parser/ets/thisInConstructor.ets @@ -30,4 +30,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Using this is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using this is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets index 6561a2551f..1c264c5a8c 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets @@ -18,4 +18,4 @@ class A { attr_a: /* @@ label */this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets index ed587076e6..9544b70ed8 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets @@ -17,4 +17,4 @@ class A { foo(arg1: int, arg2: /* @@ label */this) {} } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets index 8eed4266ad..ff9a0234cf 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets @@ -17,4 +17,4 @@ class A { static foo(arg1: int, arg2: /* @@ label */this) {} } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets index 0dceb8d82a..9478c21a3b 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets @@ -17,5 +17,5 @@ class A { static foo(arg1: int, arg2: /* @@ label */this) { return this; } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 17:62 Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 17:62 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets index 5333744910..50a5617b6a 100644 --- a/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets @@ -15,4 +15,4 @@ function foo(arg1: int, arg2: /* @@ label */this) {} -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets index 549cfdf8be..dbed1ed5ad 100644 --- a/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets @@ -15,6 +15,6 @@ function foo(arg1: int): /* @@ label */this { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 16:54 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:54 Error TypeError: Type 'Error' is not compatible with the enclosing method's return type 'ETSGLOBAL' */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 16:54 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 16:54 Error Semantic error ESE0091: Type 'Error' is not compatible with the enclosing method's return type 'ETSGLOBAL' */ diff --git a/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets index 0b96d94e59..228dfe7b79 100644 --- a/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets @@ -61,14 +61,14 @@ class C { } } -/* @@? 20:28 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 36:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 43:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 50:27 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 50:31 Error SyntaxError: Expected ')', got '.'. */ -/* @@? 50:31 Error SyntaxError: Unexpected token '.'. */ -/* @@? 50:32 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 50:32 Error TypeError: Property 'b' must be accessed through 'this' */ -/* @@? 50:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 50:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 57:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 20:28 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 36:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 43:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 50:27 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 50:31 Error Syntax error ESY0230: Expected ')', got '.'. */ +/* @@? 50:31 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 50:32 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 50:32 Error Semantic error ESE0145: Property 'b' must be accessed through 'this' */ +/* @@? 50:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 50:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 57:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets index f59ba4f21a..28ce707b28 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets index 7de38bf162..73f7e3bcbf 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets @@ -15,4 +15,4 @@ let x: (i: int, t: /* @@ label */this) => number; -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets index e8996e7b02..1dc5aab063 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets index a4f3d14935..d200f50015 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets @@ -15,4 +15,4 @@ let x: (i: int, n: number) => /* @@ label */this; -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets index 018061ac84..b07222c782 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets index aa1727e920..e2753b4514 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/too_many_expression.ets b/ets2panda/test/ast/parser/ets/too_many_expression.ets index 3588b15977..dcfd7595ba 100644 --- a/ets2panda/test/ast/parser/ets/too_many_expression.ets +++ b/ets2panda/test/ast/parser/ets/too_many_expression.ets @@ -15,5 +15,5 @@ (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( -/* @@? 16:513 Error SyntaxError: Maximum allowed nesting level exceeded. */ -/* @@? 19:67 Error SyntaxError: Unexpected token, expected ')'. */ \ No newline at end of file +/* @@? 16:513 Error Syntax error ESY0305: Maximum allowed nesting level exceeded. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets index 34985816d1..524707b4c7 100644 --- a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets +++ b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets @@ -17,4 +17,4 @@ } -/* @@@ label Error SyntaxError: Unexpected token 'static'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets index 3bc32586c9..c5be6c6d9b 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets @@ -35,35 +35,35 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 16:30 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 24:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:15 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 28:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:14 Error SyntaxError: Unexpected token '2'. */ -/* @@? 28:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:1 Error TypeError: No matching call signature for foo(a[0], a[1], ...a) */ -/* @@? 31:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:17 Error TypeError: Spread argument for the rest parameter can be only one. */ -/* @@? 32:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:11 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 32:11 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 32:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 33:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:6 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 34:6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 34:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 34:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 35:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 35:10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 36:5 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:30 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 24:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 28:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:14 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 28:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:1 Error Semantic error ESE0127: No matching call signature for foo(a[0], a[1], ...a) */ +/* @@? 31:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:17 Error Semantic error ESE0123: Spread argument for the rest parameter can be only one. */ +/* @@? 32:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 32:11 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 32:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 33:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 34:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 34:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 34:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 35:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 35:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 35:10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 36:5 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets index d2ec51613e..8fc7636053 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets @@ -19,8 +19,8 @@ class C { let a = new C(12,) -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ -/* @@? 20:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 20:9 Error TypeError: No matching construct signature for trailing_comma_2.C(Int) */ -/* @@? 20:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 20:9 Error TypeError: No matching construct signature for trailing_comma_2.C(Int) */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 20:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 20:9 Error Semantic error ESE0127: No matching construct signature for trailing_comma_2.C(Int) */ +/* @@? 20:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 20:9 Error Semantic error ESE0127: No matching construct signature for trailing_comma_2.C(Int) */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets index 74e47ee4f4..6e92852d72 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets @@ -17,4 +17,4 @@ function foo(a?:number, b?:()=>void, c?:()=>void){} foo(){}{} -/* @@? 18:8 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets index f7270078e3..dd3fa2a66e 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets @@ -42,5 +42,5 @@ function testEmptyLambda() { }; } -/* @@? 40:5 Error TypeError: Expected 2 arguments, got 1. */ -/* @@? 40:5 Error TypeError: No matching call signature for check("test") */ \ No newline at end of file +/* @@? 40:5 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@? 40:5 Error Semantic error ESE0127: No matching call signature for check("test") */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets index f4837d017a..181ea66106 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 62cbf9b829..24b30c6ada 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets @@ -34,4 +34,4 @@ function testExtraTrailing() { }; } -/* @@? 32:5 Error TypeError: No matching call signature with trailing lambda */ +/* @@? 32:5 Error Semantic error ESE0140: No matching call signature with trailing lambda */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets index 95bf39bd29..77e0b18e65 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error TypeError: Unexpected return value, enclosing method return type is void. */ +/* @@@ label Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets index 90b3b80d95..6a89d90e6e 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error TypeError: Unexpected return value, enclosing method return type is void. */ +/* @@@ label Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets index a411511e00..9d7ff52cf1 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets @@ -23,4 +23,4 @@ function f(c: ()=>void) { } -/* @@@ label Error TypeError: No matching call signature with trailing lambda */ +/* @@@ label Error Semantic error ESE0140: No matching call signature with trailing lambda */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets index 2959142484..28fcb1687b 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets @@ -23,4 +23,4 @@ function main(): void { new A() { console.print(2); }; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets index fdfa09e061..0a0c641da9 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets @@ -23,5 +23,5 @@ function main() { } } -/* @@? 21:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 21:5 Error TypeError: No matching call signature */ +/* @@? 21:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 21:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets index bed0ab0816..3bf2b93de6 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets @@ -23,6 +23,6 @@ function main(): void { new A() {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets index 725e5fce4f..c9f140a7f6 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets @@ -23,6 +23,6 @@ function main(): void { new A {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:11 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:11 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets index bd5d20efe0..18443380dd 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets @@ -23,6 +23,6 @@ function main(): void { new A() { console.print(2); }; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets index 9d29273a82..8d7acafa63 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets @@ -23,4 +23,4 @@ function f(c?: ()=>void) { } -/* @@@ label Error TypeError: No matching call signature with trailing lambda */ +/* @@@ label Error Semantic error ESE0140: No matching call signature with trailing lambda */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets index b80f49af56..fdaefa3240 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets @@ -23,4 +23,4 @@ function main(): void { new A() {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets index b168957e53..d50a5da977 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets @@ -23,4 +23,4 @@ function main(): void { new A {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:11 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:11 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets index c4e618d2d9..e83c1a8d99 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets index af8966afe9..86b0b92571 100644 --- a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets +++ b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets @@ -19,4 +19,4 @@ function main() : int { return 0; } -/* @@@ label Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ +/* @@@ label Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets index 7bf5655f13..a6fc3c5f72 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets @@ -66,4 +66,4 @@ function foo5(): int { return 2; } } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets index 6a456013e9..8e9dace42c 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets @@ -21,4 +21,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets index a1a950a348..e8b03a489f 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets @@ -25,4 +25,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets index f578fdd2cf..c9ddb75b39 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets @@ -24,4 +24,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets index f2328e1f53..95ad7e9d40 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets @@ -26,4 +26,4 @@ function foo(): int { } } -/* @@@ label Warning Warning: Unreachable statement. */ +/* @@@ label Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets index 40fe55f8cc..ed9f150272 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets @@ -25,5 +25,5 @@ function foo(): int { } -/* @@@ label1 Warning Warning: Unreachable statement. */ -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ +/* @@@ label1 Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets index 8f1984ceaa..75399f8969 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets @@ -23,4 +23,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets index 356e8c5c6d..17d571ea0f 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets @@ -24,5 +24,5 @@ function foo(): int { /* @@ label1 */return 0; } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ -/* @@@ label1 Warning Warning: Unreachable statement. */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ +/* @@@ label1 Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets index 2b31a764f1..d11e01dc7d 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets @@ -24,5 +24,5 @@ function foo(): int { } } -/* @@@ label Warning Warning: Unreachable statement. */ -/* @@@ label1 Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0026: Unreachable statement. */ +/* @@@ label1 Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets index 19a04aa602..5d932ff085 100644 --- a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets +++ b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets @@ -20,9 +20,9 @@ const c = foo; const d = (foo); const e = (foo); const f = foo; -/* @@? 18:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 19:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 20:12 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 21:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 22:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 22:14 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 19:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 20:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 21:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 22:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 22:14 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ diff --git a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets index a894834153..65f0ea376d 100644 --- a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets +++ b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets @@ -20,4 +20,4 @@ function main(): void { tuple[/* @@ label */index] = 2; } -/* @@@ label Error TypeError: Element accessor value is out of tuple size bounds. */ +/* @@@ label Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets index 093fa956be..0cdd3f948c 100644 --- a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets +++ b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets @@ -17,14 +17,14 @@ let a: [number, w: number, number,] = [1, 2, 3,]; let b: [number, /* @@ label */,number, number,] = [1, 2, 3,]; -/* @@? 17:17 Error TypeError: Cannot find type 'w'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:20 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:26 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:28 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:28 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:34 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:35 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label Error SyntaxError: Invalid Type. */ +/* @@? 17:17 Error Semantic error ESE0371: Cannot find type 'w'. */ +/* @@? 17:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:20 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:28 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:34 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:35 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets index c8033ccf5c..f42195912c 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets @@ -16,11 +16,11 @@ let a: [number, ...number[], number] = [1, 2, 3]; -/* @@? 17:17 Error SyntaxError: Invalid Type. */ -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:17 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:30 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:30 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:36 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:17 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:17 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:30 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:36 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets index 2ac71cc79e..be6f648925 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets @@ -16,7 +16,7 @@ let a: [number, number number] = [1, 2, 3]; -/* @@? 17:24 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:24 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:30 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:24 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets index 47e1f0f241..3dfd130bb2 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets @@ -16,11 +16,11 @@ let a: [a0: , a1: number] = [1, 2, 3]; -/* @@? 17:9 Error TypeError: Cannot find type 'a0'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:15 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 17:19 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:25 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:9 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 17:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 17:19 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets b/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets index 9caf26990c..59f0e1df32 100644 --- a/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets +++ b/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets @@ -15,4 +15,4 @@ type var = number[] -/* @@? 16:6 Error SyntaxError: Type alias name cannot be 'var'. */ +/* @@? 16:6 Error Syntax error ESY0225: Type alias name cannot be 'var'. */ diff --git a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets index 0de608fe90..1f2df568fd 100644 --- a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets +++ b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets @@ -30,8 +30,8 @@ function main(): int { return 0; } -/* @@? 29:24 Error TypeError: No matching construct signature for type_argument_conversion.A(Array>) */ -/* @@? 29:38 Error TypeError: No Matching Parameterless Constructor, parameter count 1 */ -/* @@? 29:38 Error TypeError: No matching parameterless constructor */ -/* @@? 29:38 Error TypeError: Signature is not available here. */ -/* @@? 29:38 Error TypeError: Type 'Array>' is not compatible with type 'Array>' at index 1 */ +/* @@? 29:24 Error Semantic error ESE0127: No matching construct signature for type_argument_conversion.A(Array>) */ +/* @@? 29:38 Error Semantic error ESE0270: No Matching Parameterless Constructor, parameter count 1 */ +/* @@? 29:38 Error Semantic error ESE0125: No matching parameterless constructor */ +/* @@? 29:38 Error Semantic error ESE0137: Signature is not available here. */ +/* @@? 29:38 Error Semantic error ESE0046: Type 'Array>' is not compatible with type 'Array>' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/type_from_1.ets b/ets2panda/test/ast/parser/ets/type_from_1.ets index 4e10098780..f3599b75fd 100644 --- a/ets2panda/test/ast/parser/ets/type_from_1.ets +++ b/ets2panda/test/ast/parser/ets/type_from_1.ets @@ -17,5 +17,5 @@ } - /* @@? 16:13 Error TypeError: Expected 1 type arguments, got 0 .*/ - /* @@? 16:13 Error TypeError: No matching call signature */ \ No newline at end of file + /* @@? 16:13 Error Semantic error ESE0273: Expected 1 type arguments, got 0 . */ +/* @@? 16:13 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/type_from_generic.ets b/ets2panda/test/ast/parser/ets/type_from_generic.ets index 0a37ebe547..bfcc3ad365 100644 --- a/ets2panda/test/ast/parser/ets/type_from_generic.ets +++ b/ets2panda/test/ast/parser/ets/type_from_generic.ets @@ -17,4 +17,4 @@ function foo(){ Type.from(); } - /* @@? 17:3 Error TypeError: Unable to resolve type.*/ \ No newline at end of file + /* @@? 17:3 Error Semantic error ESE0285: Unable to resolve type. */ diff --git a/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets b/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets index 302df199c4..66aa99e312 100644 --- a/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets +++ b/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets @@ -19,5 +19,5 @@ let keyOfType = Type.from(); } - /* @@? 18:4 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 19:30 Error TypeError: Cannot find type 'keyofType'. */ \ No newline at end of file + /* @@? 18:4 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 19:30 Error Semantic error ESE0371: Cannot find type 'keyofType'. */ diff --git a/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets b/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets index 6c2a060aa5..815885db14 100644 --- a/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets +++ b/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets @@ -19,6 +19,6 @@ function foo(){ let unionTuple = Type.from<[string|number,byte|short|int|long]>(); } - /* @@? 17:18 Error TypeError: Acquiring types for union types is not supported. */ - /* @@? 18:18 Error TypeError: Acquiring types for tuple types is not supported. */ - /* @@? 19:22 Error TypeError: Acquiring types for tuple types is not supported. */ + /* @@? 17:18 Error Semantic error ESE0284: Acquiring types for union types is not supported. */ +/* @@? 18:18 Error Semantic error ESE0286: Acquiring types for tuple types is not supported. */ +/* @@? 19:22 Error Semantic error ESE0286: Acquiring types for tuple types is not supported. */ diff --git a/ets2panda/test/ast/parser/ets/type_from_utility_type.ets b/ets2panda/test/ast/parser/ets/type_from_utility_type.ets index fd5724ec64..6b9bbcc49a 100644 --- a/ets2panda/test/ast/parser/ets/type_from_utility_type.ets +++ b/ets2panda/test/ast/parser/ets/type_from_utility_type.ets @@ -32,8 +32,8 @@ let recordarrT = Type.from,Array>>(); } - /* @@? 30:19 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 30:29 Error TypeError: No static $_invoke method and static $_instantiate method in Record. Record() is not allowed. */ -/* @@? 30:29 Error TypeError: Type 'Record' has no call signatures. */ -/* @@? 31:38 Error TypeError: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ -/* @@? 32:38 Error TypeError: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ + /* @@? 30:19 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 30:29 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Record. Record() is not allowed. */ +/* @@? 30:29 Error Semantic error ESE0002: Type 'Record' has no call signatures. */ +/* @@? 31:38 Error Semantic error ESE0228: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@? 32:38 Error Semantic error ESE0228: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets b/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets index 911938c626..0aa9142509 100644 --- a/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets +++ b/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets @@ -26,6 +26,6 @@ type MyMap = { type RecordMap = { n: number }; // Expected compilation errors for unsupported TypeScript features in ETS: -/* @@? 22:37 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 22:41 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 26:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ \ No newline at end of file +/* @@? 22:37 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 22:41 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 26:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets b/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets index e679c92132..6ae9cdd0b1 100644 --- a/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets +++ b/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets @@ -32,5 +32,5 @@ function main() { arktest.assertEQ(res, 2); } -/* @@? 25:17 Error TypeError: foo(x: T): void in B cannot override foo(x: T): void in A because overriding type parameter's conatraints are not compatible with type parameter constraints of the overridden method. */ -/* @@? 25:17 Error TypeError: Method foo(x: T): void in B not overriding any method */ +/* @@? 25:17 Error Semantic error ESE0141: foo(x: T): void in B cannot override foo(x: T): void in A because overriding type parameter's conatraints are not compatible with type parameter constraints of the overridden method. */ +/* @@? 25:17 Error Semantic error ESE0136: Method foo(x: T): void in B not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/type_references.ets b/ets2panda/test/ast/parser/ets/type_references.ets index 4659ad2318..e4ae8ec559 100644 --- a/ets2panda/test/ast/parser/ets/type_references.ets +++ b/ets2panda/test/ast/parser/ets/type_references.ets @@ -18,6 +18,6 @@ type B = short; let x: G // OK let y: G<{a:String}, B> // Error -/* @@? 18:8 Error TypeError: Cannot find type 'G'. */ -/* @@? 19:8 Error TypeError: Cannot find type 'G'. */ -/* @@? 19:10 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:8 Error Semantic error ESE0371: Cannot find type 'G'. */ +/* @@? 19:8 Error Semantic error ESE0371: Cannot find type 'G'. */ +/* @@? 19:10 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/parser/ets/type_variance2.ets b/ets2panda/test/ast/parser/ets/type_variance2.ets index 67d7a48464..8eb960f013 100644 --- a/ets2panda/test/ast/parser/ets/type_variance2.ets +++ b/ets2panda/test/ast/parser/ets/type_variance2.ets @@ -17,4 +17,4 @@ class C { constructor() {} } -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ diff --git a/ets2panda/test/ast/parser/ets/type_variance3.ets b/ets2panda/test/ast/parser/ets/type_variance3.ets index ac07e70222..3394d01d5e 100644 --- a/ets2panda/test/ast/parser/ets/type_variance3.ets +++ b/ets2panda/test/ast/parser/ets/type_variance3.ets @@ -17,4 +17,4 @@ class C { set(t: T2): void { } } -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ diff --git a/ets2panda/test/ast/parser/ets/type_variance4.ets b/ets2panda/test/ast/parser/ets/type_variance4.ets index f4495006d1..433e524d55 100644 --- a/ets2panda/test/ast/parser/ets/type_variance4.ets +++ b/ets2panda/test/ast/parser/ets/type_variance4.ets @@ -17,4 +17,4 @@ // after generic global function parsing is implemented. function fn(t: T): void {} -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ diff --git a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets index 8fa208a4cb..67352daeb2 100644 --- a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets +++ b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets @@ -35,4 +35,4 @@ fn6("123","456","321") function fn7(x:T, y:D){} fn7("123","456") -/* @@@ label Error TypeError: Type parameter 'D' has circular constraint dependency. */ +/* @@@ label Error Semantic error ESE0184: Type parameter 'D' has circular constraint dependency. */ diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets index 3e8e77e5b8..ed395d11fb 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets @@ -39,17 +39,17 @@ type BrokenFunc = (param: T) => void; declare const broken1: BrokenType; declare const broken2: AnotherBroken; -/* @@? 21:33 Error TypeError: Cannot find type 'UndefinedMap'. */ -/* @@? 21:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 21:49 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 26:36 Error TypeError: Cannot find type 'NonExistent'. */ -/* @@? 26:47 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 27:27 Error TypeError: Cannot find type 'InvalidInterface'. */ -/* @@? 30:52 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 31:14 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:26 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 32:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:27 Error SyntaxError: Unexpected token ']'. */ -/* @@? 36:27 Error TypeError: Cannot find type 'UndefinedInterface'. */ -/* @@? 39:35 Error TypeError: Cannot find type 'any'. */ -/* @@? 40:38 Error TypeError: Cannot find type 'any'. */ +/* @@? 21:33 Error Semantic error ESE0371: Cannot find type 'UndefinedMap'. */ +/* @@? 21:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 21:49 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 26:36 Error Semantic error ESE0371: Cannot find type 'NonExistent'. */ +/* @@? 26:47 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 27:27 Error Semantic error ESE0371: Cannot find type 'InvalidInterface'. */ +/* @@? 30:52 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 31:14 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:26 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 32:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:27 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 36:27 Error Semantic error ESE0371: Cannot find type 'UndefinedInterface'. */ +/* @@? 39:35 Error Semantic error ESE0371: Cannot find type 'any'. */ +/* @@? 40:38 Error Semantic error ESE0371: Cannot find type 'any'. */ diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets index 069c51fb2f..4f0abcaa08 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets @@ -67,58 +67,4 @@ declare const test1: ComplexType<'n'>; declare const test2: ComplexType<'s'>; declare const test3: ComplexType<'b'>; -/* @@? 1:3 Error TypeError: Class 'TupleType' is already defined with different type. */ -/* @@? 1:3 Error TypeError: Class 'UnionType' is already defined with different type. */ -/* @@? 21:19 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:41 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:42 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 35:44 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 35:59 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 35:59 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:60 Error SyntaxError: Unexpected token ']'. */ -/* @@? 38:19 Error TypeError: Cannot find type 'a'. */ -/* @@? 38:20 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:20 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:22 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 38:22 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 38:28 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:30 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 38:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:33 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 38:39 Error SyntaxError: Unexpected token ']'. */ -/* @@? 41:19 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 41:22 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 41:26 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:32 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:43 Error SyntaxError: Unexpected token ']'. */ -/* @@? 41:43 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 41:46 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ -/* @@? 44:41 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 44:60 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 54:34 Error TypeError: Cannot find type 'InvalidMap'. */ -/* @@? 54:44 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:63 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:67 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 58:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 59:23 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 59:23 Error SyntaxError: Unexpected token ']'. */ -/* @@? 59:24 Error SyntaxError: Unexpected token ']'. */ -/* @@? 59:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 60:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 60:40 Error SyntaxError: Unexpected token ','. */ -/* @@? 61:27 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 61:28 Error SyntaxError: Unexpected token ']'. */ -/* @@? 61:29 Error SyntaxError: Unexpected token ']'. */ -/* @@? 61:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 62:13 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 62:16 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 62:20 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:22 Error SyntaxError: Unexpected token ']'. */ -/* @@? 62:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:23 Error SyntaxError: Unexpected token ':'. */ -/* @@? 62:35 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:36 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 62:37 Error SyntaxError: Unexpected token ']'. */ +/* @@? 32:46 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets index 2cce27da50..8869e2dbba 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets @@ -46,15 +46,15 @@ declare const num: NumAlias<42>; declare const str: StrAlias<"test">; declare const bool: BoolAlias; -/* @@? 37:73 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 39:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 40:17 Error SyntaxError: Unexpected token ','. */ -/* @@? 45:29 Error SyntaxError: Invalid Type. */ -/* @@? 45:29 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 45:29 Error SyntaxError: Unexpected token '>'. */ -/* @@? 45:32 Error SyntaxError: Unexpected token ';'. */ -/* @@? 47:31 Error SyntaxError: Invalid Type. */ -/* @@? 47:31 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 47:31 Error SyntaxError: Unexpected token '>'. */ -/* @@? 47:36 Error SyntaxError: Unexpected token ';'. */ +/* @@? 37:73 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 39:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 40:17 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 45:29 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 45:29 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 45:29 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 45:32 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 47:31 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 47:31 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 47:31 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 47:36 Error Syntax error ESY0227: Unexpected token ';'. */ diff --git a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets index 2ab98e4b55..fed3d72df7 100644 --- a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets +++ b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets @@ -18,7 +18,7 @@ let s1 = "foo" let n2: typeof n1 let s2: typeof s1 -/* @@? 18:16 Error SyntaxError: Result of 'typeof' operator is not supported to be used as type annotation. */ -/* @@? 18:16 Error SyntaxError: Unexpected token 'n1'. */ -/* @@? 19:16 Error SyntaxError: Result of 'typeof' operator is not supported to be used as type annotation. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 's1'. */ +/* @@? 18:16 Error Syntax error ESY0309: Result of 'typeof' operator is not supported to be used as type annotation. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token 'n1'. */ +/* @@? 19:16 Error Syntax error ESY0309: Result of 'typeof' operator is not supported to be used as type annotation. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 's1'. */ diff --git a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets index 0633f881b0..530072a995 100644 --- a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets +++ b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets @@ -14,4 +14,4 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'T' has circular constraint dependency. */ +/* @@@ label Error Semantic error ESE0184: Type parameter 'T' has circular constraint dependency. */ diff --git a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets index c9d98306aa..a0cad03528 100644 --- a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets +++ b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets @@ -14,4 +14,4 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'R' has circular constraint dependency. */ +/* @@@ label Error Semantic error ESE0184: Type parameter 'R' has circular constraint dependency. */ diff --git a/ets2panda/test/ast/parser/ets/types_decls.ets b/ets2panda/test/ast/parser/ets/types_decls.ets index 07eedb43d2..dacecc09a9 100644 --- a/ets2panda/test/ast/parser/ets/types_decls.ets +++ b/ets2panda/test/ast/parser/ets/types_decls.ets @@ -56,11 +56,11 @@ let non_prim_c: Char = c'b'; // see 3.1.5 Void type function v(): void {} -/* @@? 35:21 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 36:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label Error TypeError: Variable 'prim_b' has already been declared. */ -/* @@? 45:27 Error TypeError: Cannot find type 'bool'. */ -/* @@? 45:34 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ -/* @@? 46:5 Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 46:17 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 46:24 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 35:21 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@? 36:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'prim_b' has already been declared. */ +/* @@? 45:27 Error Semantic error ESE0371: Cannot find type 'bool'. */ +/* @@? 45:34 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 46:5 Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 46:17 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 46:24 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ diff --git a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets index 633a00e7ac..f3f57e7938 100644 --- a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets +++ b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets @@ -15,5 +15,5 @@ let o: /* @@ label */{ x: number/* @@ label2 */, y: number } = { x: 2, y: 3 } -/* @@@ label Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Unexpected token ','. */ +/* @@@ label Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets index dbbd45161e..a10fa09cfd 100644 --- a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets +++ b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets @@ -15,5 +15,4 @@ type S = Set -/* @@@ label Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:10 Error Semantic error ESE0000: Cannot find name Set */ diff --git a/ets2panda/test/ast/parser/ets/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/unclosed_loop.ets index a2b6128cce..573d0ed28a 100644 --- a/ets2panda/test/ast/parser/ets/unclosed_loop.ets +++ b/ets2panda/test/ast/parser/ets/unclosed_loop.ets @@ -24,7 +24,7 @@ function main(): int { /* @@ label3 */continue return 0; } -/* @@@ label Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label1 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label2 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label3 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label3 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ diff --git a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets index 2abca16932..4617715189 100644 --- a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets +++ b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets @@ -18,4 +18,4 @@ function main(){ mix = /* @@ label */new Object(); } -/* @@@ label Error TypeError: Type 'Object' cannot be assigned to type 'undefined|null' */ +/* @@@ label Error Semantic error ESE0318: Type 'Object' cannot be assigned to type 'undefined|null' */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets index 475a31b33c..2d4a46f3bc 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets @@ -15,6 +15,6 @@ import num from @^& -/* @@? 16:17 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 16:19 Error SyntaxError: Unexpected token '&'. */ +/* @@? 16:17 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token '&'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets index 71868b43ec..19c962e8fc 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets @@ -15,7 +15,7 @@ import /* @@ label */(/* @@ label1 */node/* @@ label2 */) /* @@ label3 */from -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label3 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets index b64b32d756..cf4fdef526 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets @@ -15,4 +15,4 @@ do {} /* @@ label */whi (true) -/* @@@ label Error SyntaxError: Unexpected token, expected 'while'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'while'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets index b963cbd92e..600c097f1d 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets @@ -15,8 +15,8 @@ import { foo, bar } /* @@ label */kjfjf /* @@ label1 */988 /* @@ label2 */from /* @@ label3 */"./import_tests/modules/module" -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 16:75 Error TypeError: Unresolved reference from */ -/* @@@ label3 Error SyntaxError: Unexpected token './import_tests/modules/module'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token './import_tests/modules/module'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets index 74bc387d00..5b7a455b3c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets @@ -15,5 +15,5 @@ import X1/* @@ label */~ from -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 20:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets index 8cf75f4f62..5eed4cd8d3 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets @@ -19,9 +19,9 @@ enum HEHE } -/* @@? 17:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 17:9 Error SyntaxError: Identifier expected, got '='. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:5 Error TypeError: Unresolved reference Green */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:5 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 17:9 Error Syntax error ESY0224: Identifier expected, got '='. */ +/* @@? 17:11 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference Green */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets index aee9c4ea50..1c867f716f 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets @@ -15,5 +15,5 @@ try /* @@ label */} catch (/* @@ label1 */) {} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets index 9ca9cf1006..42c6184709 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets @@ -15,4 +15,4 @@ try {} catch (e) /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets index aef678ed24..331761b0bb 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets @@ -15,5 +15,5 @@ interface A /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected '}'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets index 9fd9559ad1..0c988e8d79 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets @@ -36,6 +36,6 @@ function labeledTest01(): int { return result; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'label1'. */ -/* @@@ label1 Error TypeError: Identifier 'label1' is used in wrong context. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'label1'. */ +/* @@@ label1 Error Semantic error ESE0330: Identifier 'label1' is used in wrong context. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets index 916eadf031..31147c8b4b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets @@ -15,4 +15,4 @@ try {} catch /* @@ label */e) {} finally {} -/* @@@ label Error SyntaxError: Expected '(', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets index d4101acf56..6b207580c8 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets @@ -17,6 +17,6 @@ async function asyncFunc): Promise { return true; } -/* @@? 16:25 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:45 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 16:25 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:45 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_22.ets b/ets2panda/test/ast/parser/ets/unexpected_token_22.ets index 19b5147c4d..b65543c70e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_22.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_22.ets @@ -36,7 +36,7 @@ function main(): void { callAsyncLambda(); } -/* @@? 25:43 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 25:43 Error TypeError: Type '(_: Promise) => Promise' cannot be assigned to type '() => Promise' */ -/* @@? 25:44 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 25:60 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 25:43 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 25:43 Error Semantic error ESE0318: Type '(_: Promise) => Promise' cannot be assigned to type '() => Promise' */ +/* @@? 25:44 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 25:60 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_23.ets b/ets2panda/test/ast/parser/ets/unexpected_token_23.ets index 9f614340a0..851c47bbe6 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_23.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_23.ets @@ -15,4 +15,4 @@ do {} while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets index e2d0fa6af6..566e492976 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets @@ -27,6 +27,6 @@ function main(): void { } } -/* @@? 19:5 Error TypeError: Unresolved reference with_param */ -/* @@? 20:31 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 21:28 Error SyntaxError: Expected '{', got 'case'. */ +/* @@? 19:5 Error Semantic error ESE0143: Unresolved reference with_param */ +/* @@@ label1 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@@ label2 Error Syntax error ESY0230: Expected '{', got 'case'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets index 629580bc4c..88bbd3aba7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets @@ -16,12 +16,12 @@ let x: int[ = [1,2,3] let y: int = x [0] -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:13 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:19 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:20 Error SyntaxError: Unexpected token '3'. */ -/* @@? 16:21 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:14 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 16:13 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:13 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:17 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token '3'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets index fb94eb1691..16e49e32d2 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets @@ -16,4 +16,4 @@ let x: int[] = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets index e9078503bc..66475c89b4 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets @@ -17,5 +17,5 @@ interface A {} interface B {} class C implements A, B /* @@ label */[} -/* @@@ label Error SyntaxError: Unexpected token, expected ','. */ -/* @@@ label Error SyntaxError: Expected '{', got ','. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got ','. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets index b71e53851f..0c4086b0bf 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets @@ -17,11 +17,11 @@ interface A {} interface B {} interface C extends A, B [} -/* @@? 18:26 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:27 Error SyntaxError: Identifier expected. */ -/* @@? 18:27 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:27 Error TypeError: Interface expected here. */ -/* @@? 28:1 Error SyntaxError: Identifier expected. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected '}'. */ -/* @@? 28:1 Error TypeError: Interface expected here. */ +/* @@? 18:26 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:27 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:27 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:27 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 28:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 28:1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 28:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ +/* @@? 28:1 Error Semantic error ESE0179: Interface expected here. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets index b2c42936fa..9452ed013e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets @@ -19,11 +19,11 @@ function main(): void { } /*@@ label4 */} -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 17:44 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 17:69 Error TypeError: need to specify target type for class composite */ -/* @@? 18:30 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 20:15 Error SyntaxError: Expected ')', got '}'. */ -/* @@? 20:15 Error SyntaxError: Unexpected token '}'. */ -/* @@? 30:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 17:44 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:69 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 18:30 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 20:15 Error Syntax error ESY0230: Expected ')', got '}'. */ +/* @@? 20:15 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 30:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets index 9d34f48d53..b1abe08647 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets @@ -36,7 +36,7 @@ function labeledTest01(): int { return result; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '^'. */ -/* @@? 27:57 Error SyntaxError: Unexpected token 'label1'. */ -/* @@? 27:57 Error TypeError: Identifier 'label1' is used in wrong context. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 27:57 Error Syntax error ESY0227: Unexpected token 'label1'. */ +/* @@? 27:57 Error Semantic error ESE0330: Identifier 'label1' is used in wrong context. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets index 3dc7c9d733..23e5bfeef9 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets @@ -19,6 +19,6 @@ function main(): void { } } -/* @@? 17:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:27 Error TypeError: Variable 'i' is accessed before it's initialization. */ -/* @@@ label Error SyntaxError: Expected ';', got ')'. */ +/* @@? 17:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 17:27 Error Semantic error ESE0365: Variable 'i' is accessed before it's initialization. */ +/* @@@ label Error Syntax error ESY0230: Expected ';', got ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets index d7442c979c..1583e7e09b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets @@ -17,16 +17,16 @@ function foo(...^number: int[]): int { return number[0] } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:18 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:31 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:34 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 17:12 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:12 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 17:12 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:18 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:34 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 17:12 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:12 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets index 001705a3bb..08986833da 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets @@ -15,7 +15,6 @@ class G'. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@label2 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets index 4041748031..b8a1ef5965 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets @@ -15,10 +15,10 @@ class G /* @@ label */T/* @@ label1 */, S /* @@ label2 */extends T/* @@ label3 */> /* @@ label4 */{} -/* @@@ label Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:42 Error SyntaxError: Field type annotation expected. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 16:67 Error SyntaxError: Field type annotation expected. */ -/* @@@ label3 Error SyntaxError: Unexpected token '>'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:42 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 16:67 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets index eb4252a50f..c9c99b818f 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets @@ -25,9 +25,9 @@ let sector: float }; } -/* @@? 20:12 Error TypeError: key in class composite should be either identifier or string literal */ -/* @@? 23:19 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 23:20 Error SyntaxError: Unexpected token. */ -/* @@? 23:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:16 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 26:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 20:12 Error Semantic error ESE0073: key in class composite should be either identifier or string literal */ +/* @@? 23:19 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 23:20 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 23:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:16 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 26:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets index 742ce91981..781c9fa9b5 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets @@ -31,12 +31,12 @@ export class AccessNSieve { } } } -/* @@? 29:10 Error TypeError: Unresolved reference le */ -/* @@? 29:13 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 29:13 Error TypeError: Unresolved reference i */ -/* @@? 29:14 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 29:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 29:16 Error SyntaxError: Expected ')', got 'int'. */ -/* @@? 29:16 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 29:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 29:38 Error SyntaxError: Unexpected token '{'. */ +/* @@? 29:10 Error Semantic error ESE0143: Unresolved reference le */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 29:13 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 29:14 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 29:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 29:16 Error Syntax error ESY0230: Expected ')', got 'int'. */ +/* @@? 29:16 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 29:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 29:38 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets index 11db5876c0..d2b131b734 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets @@ -20,12 +20,12 @@ console.log("h") } -/* @@@ label Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@@ label1 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label2 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:41 Error SyntaxError: Unexpected token 'Error'. */ -/* @@@ label3 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:63 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '{'. */ -/* @@? 32:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@@ label2 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token 'Error'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:63 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 32:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets index 780e05d962..e5619c4f09 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets @@ -23,9 +23,9 @@ let func3: (f: (a: number, b: string) => number[]): number[] => (a: number, b: b // let func3: (f: (a: number, b: string) => number[]): number[]) => (a: number, b: boolean) => true; -/* @@? 19:8 Error TypeError: 'void' used as type annotation. */ -/* @@? 22:51 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 22:51 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:53 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 22:62 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:62 Error SyntaxError: Unexpected token. */ +/* @@? 19:8 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 22:51 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 22:51 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:53 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 22:62 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:62 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets index 31b0b10aa7..9a3693b58c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets @@ -15,4 +15,4 @@ let r: ((((number)))[]/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets index 5c8a7e33b0..fca2ce4e51 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets @@ -15,6 +15,6 @@ import {/* @@ label */^} from /* @@ label1 */"./import_tests/modules/module" -/* @@@ label Error SyntaxError: Unexpected token '^'. */ -/* @@? 16:26 Error TypeError: Unresolved reference from */ -/* @@@ label1 Error SyntaxError: Unexpected token './import_tests/modules/module'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 16:26 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token './import_tests/modules/module'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets index f4c93de60b..8fbafaeeea 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets @@ -15,6 +15,6 @@ let arr = new Array' is generic but type argument were not provided. */ -/* @@? 16:41 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:15 Error Semantic error ESE0170: Type 'Array' is generic but type argument were not provided. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets index 40e2093999..20f88612b6 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets @@ -17,8 +17,8 @@ for (let i: int = 0; i < d?length/* @@ label */; ++i/* @@ label1 */) { arr.push(d[i]); } -/* @@? 16:26 Error TypeError: Unresolved reference d */ -/* @@? 16:28 Error TypeError: Unresolved reference length */ -/* @@@ label Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label1 Error SyntaxError: Expected ';', got ')'. */ -/* @@? 17:5 Error TypeError: Unresolved reference arr */ +/* @@? 16:26 Error Semantic error ESE0143: Unresolved reference d */ +/* @@? 16:28 Error Semantic error ESE0143: Unresolved reference length */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got ')'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference arr */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets index 7d02e8a0d8..12ca92d365 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets @@ -15,5 +15,5 @@ // Int[1,2,3,4,5] let a: number = new Int[1 -/* @@? 16:17 Error TypeError: Type 'Array' cannot be assigned to type 'Double' */ -/* @@? 20:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:17 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Double' */ +/* @@? 20:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets index 28f196a0b8..c1e6fddfc0 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets @@ -15,9 +15,9 @@ let v2 = `--- ${y + abc /* @@ label */${y} = ${ n*2 }!`/* @@ label1 */} ---`;` -/* @@? 16:17 Error TypeError: Unresolved reference y */ -/* @@? 16:21 Error TypeError: Unresolved reference abc */ -/* @@@ label Error SyntaxError: Expected '}', got 'identification literal'. */ -/* @@? 16:49 Error TypeError: Unresolved reference n */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 16:71 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:17 Error Semantic error ESE0143: Unresolved reference y */ +/* @@? 16:21 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@@ label Error Syntax error ESY0230: Expected '}', got 'identification literal'. */ +/* @@? 16:49 Error Semantic error ESE0143: Unresolved reference n */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label1 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets index ebff97f5b4..606d9dde83 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets @@ -19,4 +19,4 @@ do { ) } while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets index 8ee88559f0..b6df61d68b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets @@ -19,5 +19,4 @@ do { ) } while (true -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 23:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets index 5762664c26..37a8576b49 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets @@ -19,7 +19,7 @@ interface IEmployee { sdskdsopd?: string; } -/* @@? 17:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:7 Error SyntaxError: Expected 'method name', got '^'. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 17:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:7 Error Syntax error ESY0230: Expected 'method name', got '^'. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets index 875bd83b5a..96b6de1a36 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets @@ -15,7 +15,7 @@ let isPrime: int[] = new int[[]][[] -/* @@? 16:22 Error TypeError: Type 'Array>' cannot be assigned to type 'Array' */ -/* @@? 16:30 Error TypeError: Can't resolve array type */ -/* @@? 16:34 Error TypeError: Can't resolve array type */ -/* @@? 22:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:22 Error Semantic error ESE0318: Type 'Array>' cannot be assigned to type 'Array' */ +/* @@? 16:30 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 16:34 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 22:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets index 9193aee2c1..e37ba4b376 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets @@ -15,6 +15,6 @@ export type {B/* @@ label */] -/* @@? 16:14 Error SyntaxError: Cannot find name 'B' to export. */ -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error SyntaxError: Unexpected token ']'. */ +/* @@? 16:14 Error Syntax error ESY0279: Cannot find name 'B' to export. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets index a08589fe31..7ed161528a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets @@ -18,7 +18,9 @@ function identity(arg: Type): Type { } let output = identity/* @@ label */"hehe" -/* @@? 19:14 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 19:14 Error TypeError: No matching call signature */ -/* @@? 19:44 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 25:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 19:14 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 19:14 Error Semantic error ESE0128: No matching call signature */ +/* @@? 19:14 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 19:14 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets index 2e86dc60a2..cf6e96c49a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets @@ -15,7 +15,7 @@ import * as /* @@ label */~/* @@ label1 */path /* @@ label2 */from /* @@ label3 */'node:path'; -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@@ label3 Error SyntaxError: Unexpected token 'node:path'. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'node:path'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets index d183229f0b..82962b7aad 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets @@ -19,7 +19,9 @@ function identity(arg: Type): Type { let output = identity let output1 = identity/* @@ label */"hehe" -/* @@? 20:15 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 20:15 Error TypeError: No matching call signature */ -/* @@? 20:45 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 26:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 20:15 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 20:15 Error Semantic error ESE0128: No matching call signature */ +/* @@? 20:15 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 20:15 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 28:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets index 9b65b55ca6..4d20c736cf 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets @@ -18,16 +18,16 @@ let a = { ...a, } -/* @@? 16:5 Error TypeError: Cannot infer type for a because class composite needs an explicit target type */ -/* @@? 17:9 Error SyntaxError: Unexpected token. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:10 Error SyntaxError: Object pattern can't contain methods. */ -/* @@? 17:12 Error SyntaxError: Expected '{', got '('. */ -/* @@? 17:12 Error SyntaxError: Unexpected token. */ -/* @@? 17:13 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:5 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:8 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:5 Error Semantic error ESE0174: Cannot infer type for a because class composite needs an explicit target type */ +/* @@? 17:9 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:10 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:10 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@? 17:12 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 17:12 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets index da3f06e4cb..b643d8916c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets @@ -25,17 +25,17 @@ export class MathSpectralNorm { } } -/* @@? 19:10 Error TypeError: Unresolved reference i */ -/* @@? 19:22 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 19:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:24 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 19:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:7 Error TypeError: Unresolved reference vbv */ -/* @@? 20:14 Error TypeError: Unresolved reference u */ -/* @@? 20:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 20:21 Error TypeError: Unresolved reference v */ -/* @@? 20:21 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:7 Error TypeError: Unresolved reference vv */ -/* @@? 21:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:21 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 19:10 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:22 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 19:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:24 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 19:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:7 Error Semantic error ESE0143: Unresolved reference vbv */ +/* @@? 20:14 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 20:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 20:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:7 Error Semantic error ESE0143: Unresolved reference vv */ +/* @@? 21:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets index 17ccd74642..6966ac2066 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets @@ -25,18 +25,18 @@ export class MathSpectralNorm { } } -/* @@? 19:16 Error TypeError: Unresolved reference i */ -/* @@? 19:18 Error SyntaxError: Unexpected token '='. */ -/* @@? 19:29 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 19:29 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:31 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 19:34 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:7 Error TypeError: Unresolved reference vbv */ -/* @@? 20:14 Error TypeError: Unresolved reference u */ -/* @@? 20:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 20:21 Error TypeError: Unresolved reference v */ -/* @@? 20:21 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:7 Error TypeError: Unresolved reference vv */ -/* @@? 21:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:21 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 19:16 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 19:29 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 19:29 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:31 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 19:34 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:7 Error Semantic error ESE0143: Unresolved reference vbv */ +/* @@? 20:14 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 20:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 20:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:7 Error Semantic error ESE0143: Unresolved reference vv */ +/* @@? 21:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets index 7b68324c19..7a303c210c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets @@ -18,16 +18,16 @@ for await (/* @@ label1 */;/* @@ label2 */;/* @@ label3 */i < /* @@ label4 */cou } for (let i? /* @@ label11 */: Number = 1;;) { break; } -/* @@@ label1 Error SyntaxError: Unexpected token ';'. */ -/* @@@ label2 Error SyntaxError: Unexpected token ';'. */ -/* @@@ label3 Error TypeError: Unresolved reference i */ -/* @@@ label4 Error TypeError: Unresolved reference count */ -/* @@@ label5 Error SyntaxError: Expected ')', got ';'. */ -/* @@@ label6 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label7 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label8 Error TypeError: Unresolved reference result */ -/* @@@ label9 Error TypeError: Unresolved reference p */ -/* @@@ label9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label10 Error TypeError: Unresolved reference a */ -/* @@@ label10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label11 Error SyntaxError: Optional variable is deprecated and no longer supported. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@@ label3 Error Semantic error ESE0143: Unresolved reference i */ +/* @@@ label4 Error Semantic error ESE0143: Unresolved reference count */ +/* @@@ label5 Error Syntax error ESY0230: Expected ')', got ';'. */ +/* @@@ label6 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label8 Error Semantic error ESE0143: Unresolved reference result */ +/* @@@ label9 Error Semantic error ESE0143: Unresolved reference p */ +/* @@@ label9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label10 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label11 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets index 3372ab6a51..0f66fdf4d8 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets @@ -17,5 +17,4 @@ function foo(a: int) {} foo(1 -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets index b6b5d9d26f..2900f81f92 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets @@ -17,5 +17,4 @@ function foo(a: int) {} foo(1, -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets index b35bc96dee..32cd3d0dcb 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets @@ -17,5 +17,4 @@ class A { x: int -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets index 7f3274cd03..3e4e828c93 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets @@ -17,4 +17,4 @@ while (true /* @@ label */{ console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets index be2e36498f..8b7fd20292 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets @@ -19,4 +19,4 @@ function main(): void { } } -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets index 76c41c3aa4..339011e42a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets @@ -19,5 +19,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Cannot assign to a constant variable i */ -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a constant variable i */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets index 40a8346dc0..9088ff3e86 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets @@ -26,37 +26,36 @@ class A { } } -/* @@? 17:7 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:23 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:29 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:31 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:37 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token 'while'. */ -/* @@? 18:8 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 18:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'true'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:13 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:4 Error SyntaxError: Unexpected token 'if'. */ -/* @@? 19:6 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 19:7 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:7 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:7 Error SyntaxError: Unexpected token 'false'. */ -/* @@? 19:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:12 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:5 Error SyntaxError: Unexpected token 'break'. */ -/* @@? 21:6 Error SyntaxError: Unexpected token 'else'. */ -/* @@? 21:11 Error SyntaxError: Unexpected token '{'. */ -/* @@? 23:5 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 23:10 Error TypeError: Property 'func' does not exist on type 'Error' */ -/* @@? 23:21 Error SyntaxError: Unexpected token 'final'. */ -/* @@? 25:3 Error SyntaxError: Unexpected token '}'. */ -/* @@? 26:2 Error SyntaxError: Unexpected token '}'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token '}'. */ - +/* @@? 17:7 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:23 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:23 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:31 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:37 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token 'while'. */ +/* @@? 18:8 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 18:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'true'. */ +/* @@? 18:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:9 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:13 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:4 Error Syntax error ESY0227: Unexpected token 'if'. */ +/* @@? 19:6 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 19:7 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:7 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:7 Error Syntax error ESY0227: Unexpected token 'false'. */ +/* @@? 19:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:5 Error Syntax error ESY0227: Unexpected token 'break'. */ +/* @@? 21:6 Error Syntax error ESY0227: Unexpected token 'else'. */ +/* @@? 21:11 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 23:10 Error Semantic error ESE0087: Property 'func' does not exist on type 'Error' */ +/* @@? 23:21 Error Syntax error ESY0227: Unexpected token 'final'. */ +/* @@? 25:3 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 26:2 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets index 43dc6c6c47..6d575b6769 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets @@ -17,4 +17,4 @@ while /* @@ label */true) { console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected '(', got 'true'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'true'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets index 0e1150386e..1ff4f3dfeb 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets @@ -17,4 +17,4 @@ try { } catch (e /* @@ label1 */{} -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets index 0afcc96121..640d6f5261 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets @@ -15,5 +15,5 @@ console.log("aaaaaaaa"} -/* @@? 16:23 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:23 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/union_static_method.ets b/ets2panda/test/ast/parser/ets/union_static_method.ets index 9148df2085..f3d6de35c5 100644 --- a/ets2panda/test/ast/parser/ets/union_static_method.ets +++ b/ets2panda/test/ast/parser/ets/union_static_method.ets @@ -29,4 +29,4 @@ function main() { UT.met() } -/* @@? 29:5 Error TypeError: Static union member expression cannot be interpreted. */ +/* @@? 29:5 Error Semantic error ESE0335: Static union member expression cannot be interpreted. */ diff --git a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets index 1b3e35abc0..25e73850e3 100644 --- a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets +++ b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets @@ -21,12 +21,12 @@ classtext: string, reviver: ((key: string, value: NullishType) => NullishType) | undefined, type: Type -/* @@? 16:13 Error TypeError: Unresolved reference z */ -/* @@? 22:12 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:18 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:20 Error SyntaxError: Unexpected token 'reviver'. */ -/* @@? 22:29 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:91 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:93 Error SyntaxError: Unexpected token 'type'. */ -/* @@? 22:99 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 33:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference z */ +/* @@? 22:12 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:18 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:20 Error Syntax error ESY0227: Unexpected token 'reviver'. */ +/* @@? 22:29 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:91 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:93 Error Syntax error ESY0227: Unexpected token 'type'. */ +/* @@? 22:99 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 33:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets index 7ca3f8b98c..aa62b2aea9 100644 --- a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets +++ b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets @@ -34,18 +34,18 @@ export const updateIfChanged = (t: Record) => { }; }; -/* @@? 21:19 Error TypeError: Unresolved reference u */ -/* @@? 21:19 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:7 Error TypeError: Type '(v: Record) => Boolean' is not compatible with type '(previousValue: Boolean, currentValue: Boolean, index: Double, array: FixedArray) => Boolean' at index 2 */ -/* @@? 27:11 Error TypeError: Invalid record property */ -/* @@? 28:11 Error SyntaxError: Unexpected token. */ -/* @@? 28:12 Error SyntaxError: Unexpected token. */ -/* @@? 28:12 Error TypeError: Type '*ERROR_TYPE*' is not compatible with type 'String' at index 1 */ -/* @@? 28:15 Error SyntaxError: Unexpected token. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token 'v'. */ -/* @@? 29:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 30:16 Error TypeError: Unresolved reference update */ -/* @@? 32:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:12 Error TypeError: Unresolved reference reduceResult */ -/* @@? 35:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 21:19 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 21:19 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:7 Error Semantic error ESE0046: Type '(v: Record) => Boolean' is not compatible with type '(previousValue: Boolean, currentValue: Boolean, index: Double, array: FixedArray) => Boolean' at index 2 */ +/* @@? 27:11 Error Semantic error ESE0393: Invalid record property */ +/* @@? 28:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:12 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:12 Error Semantic error ESE0046: Type '*ERROR_TYPE*' is not compatible with type 'String' at index 1 */ +/* @@? 28:15 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token 'v'. */ +/* @@? 29:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 30:16 Error Semantic error ESE0143: Unresolved reference update */ +/* @@? 32:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:12 Error Semantic error ESE0143: Unresolved reference reduceResult */ +/* @@? 35:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_10.ets b/ets2panda/test/ast/parser/ets/user_defined_10.ets index 3f505ccfbd..df16447a43 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_10.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_10.ets @@ -17,5 +17,5 @@ struct number{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_11.ets b/ets2panda/test/ast/parser/ets/user_defined_11.ets index e04f80779f..dcb9954df9 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_11.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_11.ets @@ -17,4 +17,4 @@ class /* @@ label */number{ a : string = "15"; } -/* @@? 16:21 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_12.ets b/ets2panda/test/ast/parser/ets/user_defined_12.ets index aa91f5c7f9..cfc02a533e 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_12.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_12.ets @@ -17,4 +17,4 @@ class /* @@ label */yield{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_13.ets b/ets2panda/test/ast/parser/ets/user_defined_13.ets index 15cf8e612b..74389241a2 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_13.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_13.ets @@ -17,4 +17,4 @@ class /* @@ label */var{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_14.ets b/ets2panda/test/ast/parser/ets/user_defined_14.ets index 31c17e0cc8..952f1c9239 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_14.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_14.ets @@ -17,5 +17,5 @@ class /* @@ label */typeof { a : string = "15"; } -/* @@@ label Error SyntaxError: Hard keyword 'typeof' cannot be used as identifier */ -/* @@@ label Error SyntaxError: Identifier expected, got 'typeof'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got 'typeof'. */ +/* @@? 16:28 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_15.ets b/ets2panda/test/ast/parser/ets/user_defined_15.ets index 1d8a6b4ec1..ef99686fa9 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_15.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_15.ets @@ -17,4 +17,4 @@ class /* @@ label */is{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_16.ets b/ets2panda/test/ast/parser/ets/user_defined_16.ets index 536b78e810..4fde376137 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_16.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_16.ets @@ -17,5 +17,5 @@ struct is{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_17.ets b/ets2panda/test/ast/parser/ets/user_defined_17.ets index 316498fa68..37949adeae 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_17.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_17.ets @@ -17,5 +17,5 @@ struct var{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_18.ets b/ets2panda/test/ast/parser/ets/user_defined_18.ets index b261560d44..6d408c2215 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_18.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_18.ets @@ -17,5 +17,5 @@ struct yield{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_19.ets b/ets2panda/test/ast/parser/ets/user_defined_19.ets index 8f81e7dbc7..1efa2647fa 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_19.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_19.ets @@ -17,6 +17,6 @@ struct typeof{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Hard keyword 'typeof' cannot be used as identifier */ -/* @@? 16:8 Error SyntaxError: Identifier expected, got 'typeof'. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0316: Hard keyword 'typeof' cannot be used as identifier */ +/* @@? 16:8 Error Syntax error ESY0224: Identifier expected, got 'typeof'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_20.ets b/ets2panda/test/ast/parser/ets/user_defined_20.ets index 11c00c085a..2c0e764805 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_20.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_20.ets @@ -17,5 +17,5 @@ struct bigint{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: bigint is a predefined type, cannot be used as an identifier */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0227: Unexpected token 'bigint'. */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_21.ets b/ets2panda/test/ast/parser/ets/user_defined_21.ets index a7715989bf..2c0901c861 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_21.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_21.ets @@ -17,4 +17,4 @@ class /* @@ label */bigint{ a : string = "15"; } -/* @@@ label Error SyntaxError: bigint is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: bigint is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_23.ets b/ets2panda/test/ast/parser/ets/user_defined_23.ets index efb6979bc6..857e9005ca 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_23.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_23.ets @@ -17,4 +17,4 @@ class /* @@ label */type { type: number = 0 } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_24.ets b/ets2panda/test/ast/parser/ets/user_defined_24.ets index fb94fe840a..a600d3b9ae 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_24.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_24.ets @@ -17,5 +17,5 @@ struct type { type: number = 0 } -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_25.ets b/ets2panda/test/ast/parser/ets/user_defined_25.ets index a51079cba2..4c54adfc80 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_25.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_25.ets @@ -17,8 +17,8 @@ interface /* @@ label1 */type { type: number /* @@ label2 */= /* @@ label3 */0 /* @@ label4 */} -/* @@@ label1 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@@ label2 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:48 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label4 Error SyntaxError: Identifier expected. */ +/* @@@ label1 Error Syntax error ESY0145: Cannot be used as user-defined type. */ +/* @@@ label2 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label3 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label4 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_5.ets b/ets2panda/test/ast/parser/ets/user_defined_5.ets index a20b8680d4..5ac355da88 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_5.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_5.ets @@ -17,4 +17,4 @@ enum /* @@ label */double { A, B, C } -/* @@@ label Error SyntaxError: double is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: double is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_7.ets b/ets2panda/test/ast/parser/ets/user_defined_7.ets index 5b9519508f..e7df940ae7 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_7.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_7.ets @@ -17,8 +17,6 @@ interface /* @@ label1 */double { name : string /* @@ label2 */= /* @@ label3 */"" /* @@ label4 */} -/* @@@ label1 Error SyntaxError: double is a predefined type, cannot be used as an identifier */ -/* @@@ label2 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:51 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label4 Error SyntaxError: Identifier expected. */ +/* @@@ label3 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@@ label2 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_8.ets b/ets2panda/test/ast/parser/ets/user_defined_8.ets index 52278742dd..fa590b4be9 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_8.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_8.ets @@ -17,5 +17,5 @@ struct string{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_9.ets b/ets2panda/test/ast/parser/ets/user_defined_9.ets index 1170c80f98..1742d05c0d 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_9.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_9.ets @@ -17,4 +17,4 @@ class /* @@ label */string{ a : string = "15"; } -/* @@@ label Error SyntaxError: string is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets index 829fc98702..80ab40140a 100644 --- a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets +++ b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets @@ -27,6 +27,6 @@ function main(): void { } -/* @@? 20:5 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 26:5 Error TypeError: Signature foo(a: Double|undefined): Int is not visible here. */ -/* @@? 26:5 Error TypeError: No matching call signature for foo(Double) */ +/* @@? 20:5 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 26:5 Error Semantic error ESE0139: Signature foo(a: Double|undefined): Int is not visible here. */ +/* @@? 26:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ diff --git a/ets2panda/test/ast/parser/ets/while_with_empty_body.ets b/ets2panda/test/ast/parser/ets/while_with_empty_body.ets index 3e6ecfbf42..953992e392 100644 --- a/ets2panda/test/ast/parser/ets/while_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/while_with_empty_body.ets @@ -15,5 +15,5 @@ while (null) export function foo() {} -/* @@? 16:14 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:14 Error SyntaxError: Missing body in while statement */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:14 Error Syntax error ESY0300: Missing body in while statement */ diff --git a/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets b/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets index 33c96d6b16..04d01e1a53 100644 --- a/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets +++ b/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets @@ -15,6 +15,6 @@ while () {} -/* @@? 16:8 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 21:1 Error SyntaxError: Missing condition in while statement */ +/* @@? 16:8 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:10 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 21:1 Error Syntax error ESY0301: Missing condition in while statement */ diff --git a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets index f4fc655e44..58771c6d61 100644 --- a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets +++ b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets @@ -20,4 +20,4 @@ file with CR LF line endings */ a -/* @@? 21:1 Error TypeError: Unresolved reference a */ +/* @@? 21:1 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets b/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets index 90dddc19e8..0a7dda76d4 100644 --- a/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets +++ b/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets @@ -24,4 +24,4 @@ function main() array = /* @@ label */new Bad(); } -/* @@? 24:27 Error TypeError: Type 'Bad' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'Bad' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets index 13d250bfdb..83c56c3a2e 100644 --- a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets +++ b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets @@ -20,5 +20,5 @@ class A { let a: readonly = new A(); -/* @@? 21:16 Error SyntaxError: Invalid Type. */ -/* @@? 21:20 Error SyntaxError: Readonly utility type expected but readonly found. */ +/* @@? 21:16 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:20 Error Syntax error ESY0237: Readonly utility type expected but readonly found. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets index 76848aae0f..abf15b98e7 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets @@ -22,5 +22,5 @@ function main() /* @@ label */a = /* @@ label1 */5 } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'a' */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'a' */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets index f26cb6dee6..b11611cdc0 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets @@ -23,5 +23,5 @@ function main() b = a } -/* @@? 23:9 Error SyntaxError: Class cannot be used as object. */ -/* @@? 23:9 Error TypeError: Type 'a' cannot be assigned to type 'Int' */ +/* @@? 23:9 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 23:9 Error Semantic error ESE0318: Type 'a' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets index 6b54667d9f..ef15525095 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets @@ -22,5 +22,5 @@ function main() a++ } -/* @@? 22:5 Error SyntaxError: Class cannot be used as object. */ -/* @@? 22:5 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 22:5 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 22:5 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets index 79ccb2bf3b..7379f2d44b 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets @@ -26,5 +26,5 @@ function main() a[3] } -/* @@? 26:5 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 26:5 Error SyntaxError: Class cannot be used as object. */ +/* @@? 26:5 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 26:5 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets index 4e2bf2e259..23527a7690 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets @@ -22,5 +22,5 @@ function main() /* @@ label */a = /* @@ label1 */5 } -/* @@@ label Error TypeError: Function name 'a' used in the wrong context */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type '() => void' */ +/* @@@ label Error Semantic error ESE0144: Function name 'a' used in the wrong context */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '() => void' */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets index 69076b3d7b..87724424f8 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 74b8296e56..8b5a6990ff 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets @@ -22,5 +22,5 @@ function main() a++ } -/* @@? 22:5 Error TypeError: Function name 'a' used in the wrong context */ -/* @@? 22:5 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 22:5 Error Semantic error ESE0144: Function name 'a' used in the wrong context */ +/* @@? 22:5 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets index 16a45d2daa..96c235f8f7 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets @@ -26,5 +26,5 @@ function main() a[3] } -/* @@? 26:5 Error TypeError: Function name 'a' used in the wrong context */ -/* @@? 26:5 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 26:5 Error Semantic error ESE0144: Function name 'a' used in the wrong context */ +/* @@? 26:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/js/InvalidParserImpl.js b/ets2panda/test/ast/parser/js/InvalidParserImpl.js index c9a25dc5df..f6a755d863 100644 --- a/ets2panda/test/ast/parser/js/InvalidParserImpl.js +++ b/ets2panda/test/ast/parser/js/InvalidParserImpl.js @@ -49,21 +49,11 @@ for (var i of a) { continue label; } -/* @@? 16:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:10 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:5 Error SyntaxError: Private field has already been declared. */ -/* @@? 22:15 Error SyntaxError: Invalid accessor. */ -/* @@? 24:12 Error SyntaxError: Unexpected modifier. */ -/* @@? 24:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 26:6 Error SyntaxError: Unexpected identifier. */ -/* @@? 30:6 Error SyntaxError: Private identifier can not be constructor. */ -/* @@? 35:12 Error SyntaxError: Classes may not have static property named prototype. */ -/* @@? 37:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 38:12 Error SyntaxError: Classes may not have static property named prototype. */ -/* @@? 40:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 41:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 43:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 43:11 Error SyntaxError: Constructor can not be special method. */ -/* @@? 46:12 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 46:18 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 49:14 Error SyntaxError: Undefined label. */ +/* @@? 26:13 Error Syntax error ESY0000: A method cannot be named with a private identifier */ +/* @@? 16:7 Error Syntax error ESY0230: Expected '{', got 'number literal'. */ +/* @@? 16:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 22:5 Error Syntax error ESY0154: Private field has already been declared. */ +/* @@? 22:15 Error Syntax error ESY0159: Invalid accessor. */ +/* @@? 24:12 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 24:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 26:6 Error Syntax error ESY0045: Unexpected identifier. */ diff --git a/ets2panda/test/ast/parser/js/for_of_loop_variable.js b/ets2panda/test/ast/parser/js/for_of_loop_variable.js index ba0df0f510..76dd251f66 100644 --- a/ets2panda/test/ast/parser/js/for_of_loop_variable.js +++ b/ets2panda/test/ast/parser/js/for_of_loop_variable.js @@ -27,4 +27,4 @@ for (let value of iterable2) { console.log(value); } -/* @@@ label Error SyntaxError: for-of loop variable declaration may not have an initializer. */ +/* @@@ label Error Syntax error ESY0168: for-of loop variable declaration may not have an initializer. */ diff --git a/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js b/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js index 45100448e1..66d933f98d 100644 --- a/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js +++ b/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js @@ -15,5 +15,4 @@ ++!a -/* @@@ label Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ diff --git a/ets2panda/test/ast/parser/js/module/import_meta_1.js b/ets2panda/test/ast/parser/js/module/import_meta_1.js index c27479a971..6835ff35d4 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_1.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_1.js @@ -20,8 +20,6 @@ flags: [module] import(import.mta) import.meta -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ +/* @@? 20:14 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@? 20:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@? 21:7 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ diff --git a/ets2panda/test/ast/parser/js/module/import_meta_2.js b/ets2panda/test/ast/parser/js/module/import_meta_2.js index 44391afab7..7a2336edf0 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_2.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_2.js @@ -21,10 +21,7 @@ import(import.mta import.meta -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 21:1 Error SyntaxError: Expected ')', got 'import'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 21:1 Error SyntaxError: Expected ')', got 'import'. */ +/* @@? 20:14 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@? 20:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected ')', got 'import'. */ +/* @@? 21:7 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ diff --git a/ets2panda/test/ast/parser/js/module/unexpected_token_10.js b/ets2panda/test/ast/parser/js/module/unexpected_token_10.js index 9b30edb06b..451c7636e2 100644 --- a/ets2panda/test/ast/parser/js/module/unexpected_token_10.js +++ b/ets2panda/test/ast/parser/js/module/unexpected_token_10.js @@ -19,6 +19,6 @@ flags: [module] import(import /* @@ label */) -/* @@@ label Error SyntaxError: Expected '(', got ')'. */ -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 26:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/module/unexpected_token_9.js b/ets2panda/test/ast/parser/js/module/unexpected_token_9.js index 4988d12095..5b62af7a9d 100644 --- a/ets2panda/test/ast/parser/js/module/unexpected_token_9.js +++ b/ets2panda/test/ast/parser/js/module/unexpected_token_9.js @@ -20,8 +20,4 @@ flags: [module] export { a as 6, c} from "foo" -/* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@? 20:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/js/new-expression.js b/ets2panda/test/ast/parser/js/new-expression.js index 3a1a9bb9b5..07f4f7ec21 100644 --- a/ets2panda/test/ast/parser/js/new-expression.js +++ b/ets2panda/test/ast/parser/js/new-expression.js @@ -15,4 +15,4 @@ new a()/* @@ label */{}; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/js/private_ctor_bad.js b/ets2panda/test/ast/parser/js/private_ctor_bad.js index 1b9477045f..8c9a6c4616 100644 --- a/ets2panda/test/ast/parser/js/private_ctor_bad.js +++ b/ets2panda/test/ast/parser/js/private_ctor_bad.js @@ -17,4 +17,5 @@ class A { #constructor(){} } -/* @@? 18:6 Error SyntaxError: Private identifier can not be constructor. */ +/* @@? 18:17 Error Syntax error ESY0000: A method cannot be named with a private identifier */ +/* @@? 18:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ diff --git a/ets2panda/test/ast/parser/js/private_number_bad.js b/ets2panda/test/ast/parser/js/private_number_bad.js index 94cd82cad0..270800bd16 100644 --- a/ets2panda/test/ast/parser/js/private_number_bad.js +++ b/ets2panda/test/ast/parser/js/private_number_bad.js @@ -16,5 +16,6 @@ class WeAre { #1 } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be number. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token '1'. */ diff --git a/ets2panda/test/ast/parser/js/private_ref_bad.js b/ets2panda/test/ast/parser/js/private_ref_bad.js index cc4b234705..f5413ede85 100644 --- a/ets2panda/test/ast/parser/js/private_ref_bad.js +++ b/ets2panda/test/ast/parser/js/private_ref_bad.js @@ -18,4 +18,4 @@ class A{ return this.#x } } -/* @@? 18:21 Error SyntaxError: Private field 'x' must be declared in an enclosing class */ +/* @@? 18:21 Error Syntax error ESY0000: Private field 'x' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js index 426ccec09f..5147ddf2ae 100644 --- a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js +++ b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js @@ -16,8 +16,7 @@ class WeAre { #[ } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected character in private identifier. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0000: Unexpected token, expected ']' */ +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0270: Unexpected character in private identifier. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/private_string_bad.js b/ets2panda/test/ast/parser/js/private_string_bad.js index 58c411b6fd..e085ff69af 100644 --- a/ets2panda/test/ast/parser/js/private_string_bad.js +++ b/ets2panda/test/ast/parser/js/private_string_bad.js @@ -16,5 +16,6 @@ class WeAre { #"one" } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be string. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token 'one'. */ diff --git a/ets2panda/test/ast/parser/js/static_property_prototype.js b/ets2panda/test/ast/parser/js/static_property_prototype.js index 9162d05945..fe68816078 100644 --- a/ets2panda/test/ast/parser/js/static_property_prototype.js +++ b/ets2panda/test/ast/parser/js/static_property_prototype.js @@ -18,4 +18,4 @@ class A { static "prototype" = 123; } -/* @@? 18:12 Error SyntaxError: Classes may not have static property named prototype. */ +/* @@? 18:12 Error Syntax error ESY0155: Classes may not have static property named prototype. */ diff --git a/ets2panda/test/ast/parser/js/test-array-expression-1.js b/ets2panda/test/ast/parser/js/test-array-expression-1.js index 72735af88f..d5f6723d3c 100644 --- a/ets2panda/test/ast/parser/js/test-array-expression-1.js +++ b/ets2panda/test/ast/parser/js/test-array-expression-1.js @@ -15,6 +15,6 @@ [a['b']/* @@ label */c] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'c'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'c'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-array-expression-2.js b/ets2panda/test/ast/parser/js/test-array-expression-2.js index ae6bc3f978..f840cbb8c5 100644 --- a/ets2panda/test/ast/parser/js/test-array-expression-2.js +++ b/ets2panda/test/ast/parser/js/test-array-expression-2.js @@ -16,4 +16,4 @@ [a/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition1.js b/ets2panda/test/ast/parser/js/test-class-definition1.js index cc74c1dfa0..468e6f6fc4 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition1.js +++ b/ets2panda/test/ast/parser/js/test-class-definition1.js @@ -20,4 +20,4 @@ class A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition2.js b/ets2panda/test/ast/parser/js/test-class-definition2.js index 450865bc48..b61b90b31b 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition2.js +++ b/ets2panda/test/ast/parser/js/test-class-definition2.js @@ -23,4 +23,4 @@ class A { } } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition3.js b/ets2panda/test/ast/parser/js/test-class-definition3.js index 9b0d1bd060..e299b4bb3d 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition3.js +++ b/ets2panda/test/ast/parser/js/test-class-definition3.js @@ -20,4 +20,4 @@ class B extends A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@? 19:10 Error Syntax error ESY0000: Static modifier can not appear on a constructor */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition4.js b/ets2panda/test/ast/parser/js/test-class-definition4.js index 2b904bb270..a4b8035d3f 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition4.js +++ b/ets2panda/test/ast/parser/js/test-class-definition4.js @@ -18,4 +18,4 @@ class B { static /* @@ label */prototype() { } } -/* @@@ label Error SyntaxError: Classes may not have static property named prototype. */ +/* @@@ label Error Syntax error ESY0155: Classes may not have static property named prototype. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition5.js b/ets2panda/test/ast/parser/js/test-class-definition5.js index 3fedf6b578..b21715f3b7 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition5.js +++ b/ets2panda/test/ast/parser/js/test-class-definition5.js @@ -18,4 +18,4 @@ class A { get /* @@ label */constructor() { } } -/* @@@ label Error SyntaxError: Constructor can not be special method. */ +/* @@@ label Error Syntax error ESY0149: Constructor can not be special method. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block1.js b/ets2panda/test/ast/parser/js/test-class-static-block1.js index d6eb0f75ba..bdfce4fba0 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block1.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block1.js @@ -19,5 +19,5 @@ class A { } /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block2.js b/ets2panda/test/ast/parser/js/test-class-static-block2.js index cc4297e708..fe0e420ca0 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block2.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block2.js @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block3.js b/ets2panda/test/ast/parser/js/test-class-static-block3.js index 1035daac13..b9fdb77685 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block3.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block3.js @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block4.js b/ets2panda/test/ast/parser/js/test-class-static-block4.js index cdf794c0e7..ab2b8fc0d2 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block4.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block4.js @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block5.js b/ets2panda/test/ast/parser/js/test-class-static-block5.js index 0fa943de1b..fbab6ae3f7 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block5.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block5.js @@ -20,4 +20,4 @@ class A { } -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block6.js b/ets2panda/test/ast/parser/js/test-class-static-block6.js index b12cb5006b..4f61fb6ec4 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block6.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block6.js @@ -21,4 +21,4 @@ function *g() { } } -/* @@? 19:13 Error SyntaxError: Unexpected strict mode reserved keyword. */ +/* @@? 19:13 Error Syntax error ESY0264: Unexpected strict mode reserved keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-const-without-init.js b/ets2panda/test/ast/parser/js/test-const-without-init.js index 2a9fc8c2eb..21c1ae9836 100644 --- a/ets2panda/test/ast/parser/js/test-const-without-init.js +++ b/ets2panda/test/ast/parser/js/test-const-without-init.js @@ -16,4 +16,4 @@ const c/* @@ label */; -/* @@@ label Error SyntaxError: Missing initializer in const declaration. */ +/* @@? 17:7 Error Semantic error ESE0000: Variable c implicitly has an any type. */ diff --git a/ets2panda/test/ast/parser/js/test-continue-in-switch.js b/ets2panda/test/ast/parser/js/test-continue-in-switch.js index d1ed42da04..9da2a2b1a9 100644 --- a/ets2panda/test/ast/parser/js/test-continue-in-switch.js +++ b/ets2panda/test/ast/parser/js/test-continue-in-switch.js @@ -25,4 +25,4 @@ switch (a) break; } -/* @@@ label Error SyntaxError: Illegal continue statement. */ +/* @@@ label Error Syntax error ESY0000: A 'continue' statement can only be used within an enclosing iteration statement */ diff --git a/ets2panda/test/ast/parser/js/test-delete-identifier.js b/ets2panda/test/ast/parser/js/test-delete-identifier.js index 50d2a69b2d..085e9c79a4 100644 --- a/ets2panda/test/ast/parser/js/test-delete-identifier.js +++ b/ets2panda/test/ast/parser/js/test-delete-identifier.js @@ -16,4 +16,4 @@ var a; delete a/* @@ label */; -/* @@@ label Error SyntaxError: Deleting local variable in strict mode. */ +/* @@@ label Error Syntax error ESY0050: Deleting local variable in strict mode. */ diff --git a/ets2panda/test/ast/parser/js/test-do-while-1.js b/ets2panda/test/ast/parser/js/test-do-while-1.js index 7f49fa1b8b..d633711c7d 100644 --- a/ets2panda/test/ast/parser/js/test-do-while-1.js +++ b/ets2panda/test/ast/parser/js/test-do-while-1.js @@ -15,4 +15,4 @@ do a = 2 /* @@ label */while (a > b) -/* @@@ label Error SyntaxError: Unexpected token 'while'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'while'. */ diff --git a/ets2panda/test/ast/parser/js/test-escaped-keyword.js b/ets2panda/test/ast/parser/js/test-escaped-keyword.js index 894e93267a..2d3aca1f76 100644 --- a/ets2panda/test/ast/parser/js/test-escaped-keyword.js +++ b/ets2panda/test/ast/parser/js/test-escaped-keyword.js @@ -16,4 +16,4 @@ cl\u0061ss; -/* @@? 17:1 Error SyntaxError: Escape sequences are not allowed in keyword. */ +/* @@? 17:1 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js b/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js index 2dace32c0c..cd1672c2eb 100644 --- a/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js +++ b/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js @@ -15,4 +15,4 @@ ~a /* @@ label */b -/* @@@ label Error SyntaxError: Unexpected token 'b'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'b'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-1.js b/ets2panda/test/ast/parser/js/test-for-1.js index 9b2243661f..5f4713ad1e 100644 --- a/ets2panda/test/ast/parser/js/test-for-1.js +++ b/ets2panda/test/ast/parser/js/test-for-1.js @@ -16,6 +16,5 @@ for () {} -/* @@? 17:6 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:6 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:6 Error SyntaxError: Expected ';', got ')'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:6 Error Syntax error ESY0230: Expected ';', got ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-2.js b/ets2panda/test/ast/parser/js/test-for-2.js index 050b2fa3d7..5aa44c7271 100644 --- a/ets2panda/test/ast/parser/js/test-for-2.js +++ b/ets2panda/test/ast/parser/js/test-for-2.js @@ -15,5 +15,5 @@ for (;/* @@ label */) {} -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@@ label Error SyntaxError: Expected ';', got ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0230: Expected ';', got ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-3.js b/ets2panda/test/ast/parser/js/test-for-3.js index 35fd692b38..45e5a09389 100644 --- a/ets2panda/test/ast/parser/js/test-for-3.js +++ b/ets2panda/test/ast/parser/js/test-for-3.js @@ -20,4 +20,5 @@ function foo() { } foo().a = 1; -/* @@@ label Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ +/* @@? 16:18 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@@ label Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-4.js b/ets2panda/test/ast/parser/js/test-for-4.js index 5c38c7a186..618f8d256e 100644 --- a/ets2panda/test/ast/parser/js/test-for-4.js +++ b/ets2panda/test/ast/parser/js/test-for-4.js @@ -15,4 +15,4 @@ for (let d,/* @@ label */c of {d,c}); -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ diff --git a/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js b/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js index 18d6cfdd51..a4b3153d53 100644 --- a/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js +++ b/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js @@ -21,4 +21,4 @@ function f(a, b, c) { let /* @@ label */a; } -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js b/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js index 9799129a27..5bbc5143d7 100644 --- a/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js +++ b/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js @@ -20,4 +20,4 @@ function f(a, b, c) { const /* @@ label */c = 1; } -/* @@@ label Error SyntaxError: Variable 'c' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'c' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-if-1.js b/ets2panda/test/ast/parser/js/test-if-1.js index 74a15854c6..57ddad4d7a 100644 --- a/ets2panda/test/ast/parser/js/test-if-1.js +++ b/ets2panda/test/ast/parser/js/test-if-1.js @@ -15,7 +15,7 @@ if /* @@ label */else; -/* @@@ label Error SyntaxError: Expected '(', got 'else'. */ -/* @@@ label Error SyntaxError: Unexpected token 'else'. */ -/* @@@ label Error SyntaxError: Expected ')', got 'else'. */ -/* @@@ label Error SyntaxError: Unexpected token 'else'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'else'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'else'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got 'else'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'else'. */ diff --git a/ets2panda/test/ast/parser/js/test-if-2.js b/ets2panda/test/ast/parser/js/test-if-2.js index 56a941f110..5445e88ea8 100644 --- a/ets2panda/test/ast/parser/js/test-if-2.js +++ b/ets2panda/test/ast/parser/js/test-if-2.js @@ -15,5 +15,5 @@ if(/* @@ label */) -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-import-decl.js b/ets2panda/test/ast/parser/js/test-import-decl.js index c4238d2201..c36666e887 100644 --- a/ets2panda/test/ast/parser/js/test-import-decl.js +++ b/ets2panda/test/ast/parser/js/test-import-decl.js @@ -23,5 +23,5 @@ import a from /* @@ label */"bar"/* @@ label1 */; import {c, d as e, f } from "bar" import "foobar"; -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/js/test-imported-decl1.js b/ets2panda/test/ast/parser/js/test-imported-decl1.js index 7189810d14..ffa95fe09e 100644 --- a/ets2panda/test/ast/parser/js/test-imported-decl1.js +++ b/ets2panda/test/ast/parser/js/test-imported-decl1.js @@ -20,4 +20,4 @@ flags: [module] import * as b from "foo" import {/* @@ label */b} from "bar" -/* @@@ label Error SyntaxError: Variable 'b' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'b' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement1.js b/ets2panda/test/ast/parser/js/test-labelled-statement1.js index 5ad2a83d1f..e4404a5003 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement1.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement1.js @@ -17,4 +17,4 @@ a: /* @@ label */a: 2; -/* @@@ label Error SyntaxError: Label already declared. */ +/* @@@ label Error Syntax error ESY0214: Label already declared. */ diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement2.js b/ets2panda/test/ast/parser/js/test-labelled-statement2.js index eb1914fa40..dfb3ec24f1 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement2.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement2.js @@ -21,6 +21,4 @@ while(true) a+=10/* @@ label1 */!! /* @@ label2 */} -/* @@@ label Error SyntaxError: Undefined label. */ -/* @@@ label1 Error SyntaxError: Unexpected token '!'. */ -/* @@@ label2 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0162: Undefined label. */ diff --git a/ets2panda/test/ast/parser/js/test-let-redeclaration.js b/ets2panda/test/ast/parser/js/test-let-redeclaration.js index 82ad1aa312..ac9c64e404 100644 --- a/ets2panda/test/ast/parser/js/test-let-redeclaration.js +++ b/ets2panda/test/ast/parser/js/test-let-redeclaration.js @@ -18,4 +18,4 @@ let a; let b; let /* @@ label */a; -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-member-expression-1.js b/ets2panda/test/ast/parser/js/test-member-expression-1.js index 332e76d609..4c4dad1b58 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-1.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-1.js @@ -15,8 +15,6 @@ a.(b) -/* @@? 17:3 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 17:4 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ +/* @@? 17:3 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-member-expression-2.js b/ets2panda/test/ast/parser/js/test-member-expression-2.js index 531e2aea05..2729b1c4f4 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-2.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-2.js @@ -15,4 +15,4 @@ a[b -/* @@? 19:1 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-member-expression-3.js b/ets2panda/test/ast/parser/js/test-member-expression-3.js index dde6060bd0..64bfa5f6f1 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-3.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-3.js @@ -15,4 +15,4 @@ "sfs".b[/* @@ label */] -/* @@@ label Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-missing-catch-argument.js b/ets2panda/test/ast/parser/js/test-missing-catch-argument.js index 948556a5fc..cdba62e530 100644 --- a/ets2panda/test/ast/parser/js/test-missing-catch-argument.js +++ b/ets2panda/test/ast/parser/js/test-missing-catch-argument.js @@ -27,4 +27,4 @@ finally } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-multi-line-string.js b/ets2panda/test/ast/parser/js/test-multi-line-string.js index ba0a2b04bd..d7301e77f8 100644 --- a/ets2panda/test/ast/parser/js/test-multi-line-string.js +++ b/ets2panda/test/ast/parser/js/test-multi-line-string.js @@ -19,5 +19,5 @@ /* @@ label1 */ " -/* @@? 17:1 Error SyntaxError: Newline is not allowed in strings */ -/* @@@ label1 Error SyntaxError: Newline is not allowed in strings */ +/* @@? 17:1 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@@ label1 Error Syntax error ESY0265: Newline is not allowed in strings */ diff --git a/ets2panda/test/ast/parser/js/test-multiple-update-expression.js b/ets2panda/test/ast/parser/js/test-multiple-update-expression.js index 12f31ae413..5f1621da06 100644 --- a/ets2panda/test/ast/parser/js/test-multiple-update-expression.js +++ b/ets2panda/test/ast/parser/js/test-multiple-update-expression.js @@ -15,4 +15,4 @@ a++ /* @@ label */++b; -/* @@@ label Error SyntaxError: Unexpected token '++'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '++'. */ diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js index 79129a23d0..b87fcdf039 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js @@ -15,4 +15,4 @@ (null ?? null || null/* @@ label */) -/* @@@ label Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js index 02ecbbf34b..4889ef2189 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js @@ -15,4 +15,4 @@ (null && null ?? null/* @@ label */) -/* @@@ label Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator1.js b/ets2panda/test/ast/parser/js/test-numeric-separator1.js index 3aa59dc009..2f04b7874e 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator1.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator1.js @@ -15,5 +15,5 @@ 1__1 -/* @@? 17:1 Error SyntaxError: Invalid numeric separator. */ -/* @@? 17:1 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals. */ +/* @@? 17:1 Error Syntax error ESY0254: Invalid numeric separator. */ +/* @@? 17:1 Error Syntax error ESY0250: Numeric separators are not allowed at the end of numeric literals. */ diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator2.js b/ets2panda/test/ast/parser/js/test-numeric-separator2.js index 9d599954e0..562c87563b 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator2.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator2.js @@ -15,4 +15,4 @@ 1111_ -/* @@? 17:1 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals. */ +/* @@? 17:1 Error Syntax error ESY0250: Numeric separators are not allowed at the end of numeric literals. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression1.js b/ets2panda/test/ast/parser/js/test-object-expression1.js index b81d871649..e81be65c88 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression1.js +++ b/ets2panda/test/ast/parser/js/test-object-expression1.js @@ -18,4 +18,4 @@ a = { set a(b,c){} /* @@ label */} -/* @@@ label Error SyntaxError: Setter must have exactly one formal parameter. */ +/* @@@ label Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression2.js b/ets2panda/test/ast/parser/js/test-object-expression2.js index 673247be37..f5a470cebd 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression2.js +++ b/ets2panda/test/ast/parser/js/test-object-expression2.js @@ -17,9 +17,5 @@ a = { get a[b](){}, } -/* @@? 18:8 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 18:14 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:15 Error SyntaxError: Getter must not have formal parameters. */ +/* @@? 18:10 Error Syntax error ESY0000: , expected */ +/* @@? 18:8 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression3.js b/ets2panda/test/ast/parser/js/test-object-expression3.js index 44f9f8159a..8ecc1bd0a9 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression3.js +++ b/ets2panda/test/ast/parser/js/test-object-expression3.js @@ -17,4 +17,4 @@ a = { a/* @@ label */"foo", } -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression4.js b/ets2panda/test/ast/parser/js/test-object-expression4.js index 7ca28c46e6..7734894302 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression4.js +++ b/ets2panda/test/ast/parser/js/test-object-expression4.js @@ -18,4 +18,4 @@ a = { /* @@ label */if, } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression5.js b/ets2panda/test/ast/parser/js/test-object-expression5.js index 88182b2aca..01f815ec40 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression5.js +++ b/ets2panda/test/ast/parser/js/test-object-expression5.js @@ -17,4 +17,4 @@ var a = { a(){super/* @@ label */()} } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-object-proto.js b/ets2panda/test/ast/parser/js/test-object-proto.js index 779e712ae2..cbd46788f1 100644 --- a/ets2panda/test/ast/parser/js/test-object-proto.js +++ b/ets2panda/test/ast/parser/js/test-object-proto.js @@ -24,4 +24,4 @@ var a = { *__proto__(){}, /* @@ label */__proto__: 8, } -/* @@@ label Error SyntaxError: Duplicate __proto__ fields are not allowed in object literals */ +/* @@@ label Error Syntax error ESY0000: Duplicate __proto__ fields are not allowed in object literals */ diff --git a/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js b/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js index be17513d09..4b9a27f1eb 100644 --- a/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js +++ b/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js @@ -19,4 +19,10 @@ flags: [module] export default a = 1; export default /* @@ label */b = 2; -/* @@@ label Error SyntaxError: Variable '*default*' has already been declared. */ +/* @@? 20:16 Error Syntax error ESY0279: Cannot find name 'a' to export. */ +/* @@? 20:18 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 20:20 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@@ label Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ +/* @@? 21:32 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 21:34 Error Syntax error ESY0227: Unexpected token '2'. */ diff --git a/ets2panda/test/ast/parser/js/test-optional-chain.js b/ets2panda/test/ast/parser/js/test-optional-chain.js index cdfd98b73f..751b3c4e8b 100644 --- a/ets2panda/test/ast/parser/js/test-optional-chain.js +++ b/ets2panda/test/ast/parser/js/test-optional-chain.js @@ -15,4 +15,4 @@ a?.a?.a?./* @@ label */`` -/* @@@ label Error SyntaxError: Tagged Template Literals are not allowed in optionalChain. */ +/* @@@ label Error Syntax error ESY0056: Tagged Template Literals are not allowed in optionalChain. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field1.js b/ets2panda/test/ast/parser/js/test-private-field1.js index dd35ab34c9..2ea92b1a95 100644 --- a/ets2panda/test/ast/parser/js/test-private-field1.js +++ b/ets2panda/test/ast/parser/js/test-private-field1.js @@ -15,5 +15,5 @@ #a -/* @@? 20:1 Error SyntaxError: Unexpected private identifier. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 19:1 Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field10.js b/ets2panda/test/ast/parser/js/test-private-field10.js index e8861c6d35..630596854c 100644 --- a/ets2panda/test/ast/parser/js/test-private-field10.js +++ b/ets2panda/test/ast/parser/js/test-private-field10.js @@ -22,6 +22,6 @@ class A { /* @@ label1 */} } -/* @@@ label Error SyntaxError: Unexpected private identifier. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '}'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field11.js b/ets2panda/test/ast/parser/js/test-private-field11.js index 997b776d42..b5c8a258b2 100644 --- a/ets2panda/test/ast/parser/js/test-private-field11.js +++ b/ets2panda/test/ast/parser/js/test-private-field11.js @@ -22,5 +22,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected private identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field12.js b/ets2panda/test/ast/parser/js/test-private-field12.js index 58ab28d14b..d1ce4d67a8 100644 --- a/ets2panda/test/ast/parser/js/test-private-field12.js +++ b/ets2panda/test/ast/parser/js/test-private-field12.js @@ -20,4 +20,4 @@ class A { let b = new A(); b./* @@ label */#a; -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-private-field13.js b/ets2panda/test/ast/parser/js/test-private-field13.js index 81c16a2085..37f80b9e68 100644 --- a/ets2panda/test/ast/parser/js/test-private-field13.js +++ b/ets2panda/test/ast/parser/js/test-private-field13.js @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-private-field14.js b/ets2panda/test/ast/parser/js/test-private-field14.js index 24b21c4580..f97c726c0a 100644 --- a/ets2panda/test/ast/parser/js/test-private-field14.js +++ b/ets2panda/test/ast/parser/js/test-private-field14.js @@ -18,4 +18,4 @@ class A { get #a() { } /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ +/* @@? 18:11 Error Syntax error ESY0000: A method cannot be named with a private identifier */ diff --git a/ets2panda/test/ast/parser/js/test-private-field15.js b/ets2panda/test/ast/parser/js/test-private-field15.js index b292a8428c..528a941972 100644 --- a/ets2panda/test/ast/parser/js/test-private-field15.js +++ b/ets2panda/test/ast/parser/js/test-private-field15.js @@ -19,4 +19,4 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ +/* @@? 17:11 Error Syntax error ESY0000: A method cannot be named with a private identifier */ diff --git a/ets2panda/test/ast/parser/js/test-private-field16.js b/ets2panda/test/ast/parser/js/test-private-field16.js index a58effdc72..5fcc320eef 100644 --- a/ets2panda/test/ast/parser/js/test-private-field16.js +++ b/ets2panda/test/ast/parser/js/test-private-field16.js @@ -17,4 +17,4 @@ class A extends function () { x = this./* @@ label */#foo } { #foo; } -/* @@@ label Error SyntaxError: Private field 'foo' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'foo' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-private-field2.js b/ets2panda/test/ast/parser/js/test-private-field2.js index c02d9744d7..f84bfbed8e 100644 --- a/ets2panda/test/ast/parser/js/test-private-field2.js +++ b/ets2panda/test/ast/parser/js/test-private-field2.js @@ -18,4 +18,4 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field3.js b/ets2panda/test/ast/parser/js/test-private-field3.js index b771d6c46e..7ada4d7833 100644 --- a/ets2panda/test/ast/parser/js/test-private-field3.js +++ b/ets2panda/test/ast/parser/js/test-private-field3.js @@ -17,4 +17,4 @@ class A { # /* @@ label */a; } -/* @@@ label Error SyntaxError: Unexpected token in private field. */ +/* @@@ label Error Syntax error ESY0160: Unexpected token in private field. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field4.js b/ets2panda/test/ast/parser/js/test-private-field4.js index aaafa582fd..1f8b7e6c11 100644 --- a/ets2panda/test/ast/parser/js/test-private-field4.js +++ b/ets2panda/test/ast/parser/js/test-private-field4.js @@ -17,5 +17,6 @@ class A { #5; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be number. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token '5'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field5.js b/ets2panda/test/ast/parser/js/test-private-field5.js index 42d887f366..ac28b7a669 100644 --- a/ets2panda/test/ast/parser/js/test-private-field5.js +++ b/ets2panda/test/ast/parser/js/test-private-field5.js @@ -17,5 +17,6 @@ class A { #"\"bar\""; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be string. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token '"bar"'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field6.js b/ets2panda/test/ast/parser/js/test-private-field6.js index 61ad4ec580..0354352aad 100644 --- a/ets2panda/test/ast/parser/js/test-private-field6.js +++ b/ets2panda/test/ast/parser/js/test-private-field6.js @@ -17,5 +17,5 @@ class A { ##; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected token. */ +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field7.js b/ets2panda/test/ast/parser/js/test-private-field7.js index 89b26dfd6e..de704d0a97 100644 --- a/ets2panda/test/ast/parser/js/test-private-field7.js +++ b/ets2panda/test/ast/parser/js/test-private-field7.js @@ -18,6 +18,6 @@ class A { } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected token. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field8.js b/ets2panda/test/ast/parser/js/test-private-field8.js index 0f59c9ee68..528d67dd4c 100644 --- a/ets2panda/test/ast/parser/js/test-private-field8.js +++ b/ets2panda/test/ast/parser/js/test-private-field8.js @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: Private fields can not be deleted. */ +/* @@@ label Error Syntax error ESY0070: Private fields can not be deleted. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field9.js b/ets2panda/test/ast/parser/js/test-private-field9.js index 2ac3526e83..9fb6fd60f4 100644 --- a/ets2panda/test/ast/parser/js/test-private-field9.js +++ b/ets2panda/test/ast/parser/js/test-private-field9.js @@ -17,4 +17,5 @@ class A { #constructor() { } } -/* @@? 17:6 Error SyntaxError: Private identifier can not be constructor. */ +/* @@? 17:17 Error Syntax error ESY0000: A method cannot be named with a private identifier */ +/* @@? 17:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ diff --git a/ets2panda/test/ast/parser/js/test-super-expression.js b/ets2panda/test/ast/parser/js/test-super-expression.js index d795b94196..4967233d9e 100644 --- a/ets2panda/test/ast/parser/js/test-super-expression.js +++ b/ets2panda/test/ast/parser/js/test-super-expression.js @@ -15,4 +15,4 @@ super/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-1.js b/ets2panda/test/ast/parser/js/test-switch-1.js index 2fb0a42d31..9bcccc6010 100644 --- a/ets2panda/test/ast/parser/js/test-switch-1.js +++ b/ets2panda/test/ast/parser/js/test-switch-1.js @@ -16,9 +16,8 @@ switch -/* @@@ label Error SyntaxError: Expected '(', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 25:1 Error Syntax error ESY0230: Expected '(', got 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-2.js b/ets2panda/test/ast/parser/js/test-switch-2.js index 626f257980..92a681d005 100644 --- a/ets2panda/test/ast/parser/js/test-switch-2.js +++ b/ets2panda/test/ast/parser/js/test-switch-2.js @@ -18,8 +18,7 @@ switch /* @@ label */{ } -/* @@@ label Error SyntaxError: Expected '(', got '{'. */ -/* @@@ label1 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@@ label1 Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-3.js b/ets2panda/test/ast/parser/js/test-switch-3.js index e7f19e9a55..4da54894fe 100644 --- a/ets2panda/test/ast/parser/js/test-switch-3.js +++ b/ets2panda/test/ast/parser/js/test-switch-3.js @@ -18,4 +18,4 @@ switch (/* @@ label */) { } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-4.js b/ets2panda/test/ast/parser/js/test-switch-4.js index 69f096163e..95a09edb83 100644 --- a/ets2panda/test/ast/parser/js/test-switch-4.js +++ b/ets2panda/test/ast/parser/js/test-switch-4.js @@ -20,5 +20,5 @@ switch (alma) { alma +=10; } -/* @@@ label Error SyntaxError: Unexpected token 'identification literal', expected 'case' or 'default'. */ -/* @@@ label Error SyntaxError: Expected ':', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0231: Unexpected token 'identification literal', expected 'case' or 'default'. */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-5.js b/ets2panda/test/ast/parser/js/test-switch-5.js index 97f728907c..ce72393b2b 100644 --- a/ets2panda/test/ast/parser/js/test-switch-5.js +++ b/ets2panda/test/ast/parser/js/test-switch-5.js @@ -19,4 +19,4 @@ switch (alma) { /* @@ label */default: } -/* @@@ label Error SyntaxError: Multiple default clauses. */ +/* @@@ label Error Syntax error ESY0000: A 'default' clause cannot appear more than once in a 'switch' statement */ diff --git a/ets2panda/test/ast/parser/js/test-switch-6.js b/ets2panda/test/ast/parser/js/test-switch-6.js index 0d312b32b4..e5f2cf455c 100644 --- a/ets2panda/test/ast/parser/js/test-switch-6.js +++ b/ets2panda/test/ast/parser/js/test-switch-6.js @@ -17,4 +17,4 @@ switch (a) { case 1: AnimationPlaybackEvent() /* @@ label */case 2: } -/* @@@ label Error SyntaxError: Unexpected token 'case'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'case'. */ diff --git a/ets2panda/test/ast/parser/js/test-template-literal-1.js b/ets2panda/test/ast/parser/js/test-template-literal-1.js index ddae8ff487..32c08908d0 100644 --- a/ets2panda/test/ast/parser/js/test-template-literal-1.js +++ b/ets2panda/test/ast/parser/js/test-template-literal-1.js @@ -13,9 +13,7 @@ * limitations under the License. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 21:2 Error SyntaxError: Unterminated string. */ -/* @@? 21:2 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 21:2 Error SyntaxError: Unexpected token, expected '`'. */ - -` +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 21:2 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 21:2 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 21:2 Error Syntax error ESY0228: Unexpected token, expected '`'. */ diff --git a/ets2panda/test/ast/parser/js/test-template-literal-2.js b/ets2panda/test/ast/parser/js/test-template-literal-2.js index 95d1e9b201..b7d226e0e6 100644 --- a/ets2panda/test/ast/parser/js/test-template-literal-2.js +++ b/ets2panda/test/ast/parser/js/test-template-literal-2.js @@ -16,4 +16,4 @@ fa`${/* @@ label */}` -/* @@@ label Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js b/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js index cd50ab1ba6..4582cafbb5 100644 --- a/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js +++ b/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js @@ -16,4 +16,4 @@ throw /* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token ';'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ';'. */ diff --git a/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js b/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js index 8bbd196735..61bdc67edf 100644 --- a/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js +++ b/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js @@ -27,4 +27,4 @@ finally } -/* @@@ label Error SyntaxError: Variable 'e' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'e' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js b/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js index e2a08c6a96..89c8909c5b 100644 --- a/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js +++ b/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js @@ -16,5 +16,4 @@ try { } -/* @@@ label Error SyntaxError: Missing catch or finally clause. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0169: Missing catch or finally clause. */ diff --git a/ets2panda/test/ast/parser/js/test-use-strict-1.js b/ets2panda/test/ast/parser/js/test-use-strict-1.js index 2989a7dd81..72e3b60f53 100644 --- a/ets2panda/test/ast/parser/js/test-use-strict-1.js +++ b/ets2panda/test/ast/parser/js/test-use-strict-1.js @@ -18,4 +18,4 @@ var a = 078; -/* @@? 19:9 Error SyntaxError: Implicit octal literal not allowed. */ +/* @@? 19:9 Error Syntax error ESY0257: Implicit octal literal not allowed. */ diff --git a/ets2panda/test/ast/parser/js/test-use-strict-2.js b/ets2panda/test/ast/parser/js/test-use-strict-2.js index 49fd16e93e..9b8396e58a 100644 --- a/ets2panda/test/ast/parser/js/test-use-strict-2.js +++ b/ets2panda/test/ast/parser/js/test-use-strict-2.js @@ -18,5 +18,5 @@ /* @@ label */with (o) /* @@ label1 */{} -/* @@@ label Error SyntaxError: 'With' is deprecated and not supported any more. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0161: 'With' is deprecated and not supported any more. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js index 1ea7c667cc..6981c87b08 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js @@ -16,9 +16,5 @@ function f/* @@ label */{/* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ -/* @@@ label1 Error SyntaxError: Unexpected token. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file +/* @@@ label1 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js index 3437156257..191cd894df 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js @@ -16,6 +16,7 @@ function f(a,b,c)/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js index b0af0f4cf6..19b892f516 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js @@ -18,5 +18,5 @@ function f(p1, p2, p3) { a[; } -/* @@? 18:5 Error SyntaxError: Unexpected token ';'. */ -/* @@? 18:5 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 18:5 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/js/test_yield.js b/ets2panda/test/ast/parser/js/test_yield.js index 172fafb5af..991d8616ce 100644 --- a/ets2panda/test/ast/parser/js/test_yield.js +++ b/ets2panda/test/ast/parser/js/test_yield.js @@ -15,4 +15,4 @@ function* g(x = yield) {} -/* @@? 16:17 Error SyntaxError: Yield is not allowed in generator parameters. */ +/* @@? 16:17 Error Syntax error ESY0000: Yield is not allowed in generator parameters */ diff --git a/ets2panda/test/ast/parser/js/this-expression.js b/ets2panda/test/ast/parser/js/this-expression.js index 884e651960..0b1df39262 100644 --- a/ets2panda/test/ast/parser/js/this-expression.js +++ b/ets2panda/test/ast/parser/js/this-expression.js @@ -16,5 +16,5 @@ this./* @@ label */"foo"; -/* @@@ label Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@@ label Error SyntaxError: Number, string or computed value property name 'foo' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0315: Number, string or computed value property name 'foo' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ diff --git a/ets2panda/test/ast/parser/js/trailing_comma_1.js b/ets2panda/test/ast/parser/js/trailing_comma_1.js index 888adab493..604e37d3ad 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_1.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_1.js @@ -36,15 +36,4 @@ foo(a[0] /* @@ label6 */a[1]/* @@ label7 */) foo(/* @@ label8 */,) -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Unexpected token. */ -/* @@@ label3 Error SyntaxError: Unexpected token ','. */ -/* @@@ label4 Error SyntaxError: Unexpected token ','. */ -/* @@@ label5 Error SyntaxError: Unexpected token ','. */ -/* @@@ label6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label6 Error SyntaxError: Unexpected token 'a'. */ -/* @@@ label7 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label8 Error SyntaxError: Unexpected token ','. */ -/* @@@ label9 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label9 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0000: A rest parameter must be last in parameter list */ diff --git a/ets2panda/test/ast/parser/js/trailing_comma_2.js b/ets2panda/test/ast/parser/js/trailing_comma_2.js index fa3316363b..d18edcd469 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_2.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_2.js @@ -19,4 +19,4 @@ class C { let a = new C(12,) -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_1.js b/ets2panda/test/ast/parser/js/unexpected_token_1.js index d0132c02e2..451f8388e5 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_1.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_1.js @@ -16,6 +16,5 @@ class A /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_10.js b/ets2panda/test/ast/parser/js/unexpected_token_10.js index 753eb9b612..2f8328f2c3 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_10.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_10.js @@ -22,8 +22,4 @@ function foobar( ){} -/* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ +/* @@? 21:9 Error Syntax error ESY0000: A rest parameter cannot have an initializer. */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_2.js b/ets2panda/test/ast/parser/js/unexpected_token_2.js index dc3a13f5b5..40fdbd4a7e 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_2.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_2.js @@ -15,4 +15,4 @@ !(!(((a || b))); -/* @@? 16:16 Error SyntaxError: Expected ')', got ';'. */ +/* @@? 16:16 Error Syntax error ESY0000: Unexpected token, expected ')' */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_3.js b/ets2panda/test/ast/parser/js/unexpected_token_3.js index 59018135dc..a64153c485 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_3.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_3.js @@ -15,11 +15,4 @@ (...a*b+c)/(d)-e; -/* @@? 16:6 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:6 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:12 Error SyntaxError: Unterminated RegExp. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:6 Error Syntax error ESY0000: ')' expected */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_4.js b/ets2panda/test/ast/parser/js/unexpected_token_4.js index d2c8f1b4b7..02c36da808 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_4.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_4.js @@ -14,7 +14,4 @@ */ (...a)/(d)-e; -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 16:7 Error SyntaxError: Unexpected token, expected '=>'. */ +/* @@? 16:7 Error Syntax error ESY0000: Unexpected token */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_5.js b/ets2panda/test/ast/parser/js/unexpected_token_5.js index 277e2391b1..45d7dcd48a 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_5.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_5.js @@ -15,7 +15,4 @@ ()a/(d)-e; -/* @@? 16:3 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:5 Error SyntaxError: Unterminated RegExp. */ -/* @@? 16:11 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:11 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:3 Error Syntax error ESY0000: Unexpected token */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_6.js b/ets2panda/test/ast/parser/js/unexpected_token_6.js index add8ae031a..21e72c8547 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_6.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_6.js @@ -15,8 +15,4 @@ async(async b > b) -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ +/* @@? 16:15 Error Syntax error ESY0000: Unexpected token, expected '=>' */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_7.js b/ets2panda/test/ast/parser/js/unexpected_token_7.js index 670d0eb8b9..8b54ddb5d7 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_7.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_7.js @@ -18,8 +18,7 @@ class Foo { a: int { this.#bar = 0 -/* @@? 18:6 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 26:1 Error SyntaxError: Private field has already been declared. */ -/* @@? 26:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 30:1 Error Syntax error ESY0154: Private field has already been declared. */ +/* @@? 30:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts index a833ab8f08..6571d8ca8a 100644 --- a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts +++ b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts @@ -30,27 +30,22 @@ let x = new Type(a, ...); let x = new Type(1, 2, ; // This expression should be the last to test EOS. -/* @@? 17:1 Error SyntaxError: expected '=>' on the same line after an argument list, got line terminator. */ -/* @@? 20:10 Error SyntaxError: Expected expression, got '=>'. */ -/* @@? 20:10 Error SyntaxError: expected '=>' on the same line after an argument list, got line terminator. */ -/* @@? 22:13 Error SyntaxError: Unexpected token. */ -/* @@? 22:20 Error SyntaxError: Unexpected token. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:32 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 24:3 Error SyntaxError: Unexpected token '#'. */ -/* @@? 24:5 Error SyntaxError: Unexpected token in private field. */ -/* @@? 24:5 Error SyntaxError: Unexpected token '19'. */ -/* @@? 25:2 Error SyntaxError: Unexpected token '#'. */ -/* @@? 25:7 Error SyntaxError: Unexpected private identifier. */ -/* @@? 27:1 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 27:13 Error SyntaxError: 'new.Target' is not allowed here. */ -/* @@? 28:30 Error SyntaxError: Cannot use new with import(...). */ -/* @@? 29:24 Error SyntaxError: Unexpected token ')'. */ -/* @@? 30:24 Error SyntaxError: Unexpected token ';'. */ -/* @@? 30:24 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 17:1 Error Syntax error ESY0195: expected '=>' on the same line after an argument list, got line terminator. */ +/* @@? 20:10 Error Syntax error ESY0052: Expected expression, got '=>'. */ +/* @@? 20:10 Error Syntax error ESY0195: expected '=>' on the same line after an argument list, got line terminator. */ +/* @@? 22:13 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 22:20 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 22:24 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 22:30 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:32 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 24:3 Error Syntax error ESY0227: Unexpected token '#'. */ +/* @@? 24:5 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 24:5 Error Syntax error ESY0227: Unexpected token '19'. */ +/* @@? 25:2 Error Syntax error ESY0227: Unexpected token '#'. */ +/* @@? 25:7 Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 27:13 Error Syntax error ESY0073: 'new.Target' is not allowed here. */ +/* @@? 28:30 Error Syntax error ESY0060: Cannot use new with import(...). */ +/* @@? 29:24 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 30:24 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 30:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts index b334b4420c..4a24516e2b 100644 --- a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts +++ b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts @@ -29,5 +29,5 @@ declare class A { x: number = /* @@ label1 */3; } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ -/* @@@ label1 Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ +/* @@@ label1 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/InvalidStatements.ts b/ets2panda/test/ast/parser/ts/InvalidStatements.ts index 77b3f7d2ed..7799b04a8b 100644 --- a/ets2panda/test/ast/parser/ts/InvalidStatements.ts +++ b/ets2panda/test/ast/parser/ts/InvalidStatements.ts @@ -110,55 +110,54 @@ module module2 declare namespace abc {} // This should be the last test to show the absent of the '}'. -/* @@? 20:1 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 21:9 Error SyntaxError: Expected '{', got '('. */ -/* @@? 24:8 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:13 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 31:14 Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@? 35:12 Error SyntaxError: Only ambient modules can use quoted names. */ -/* @@? 35:22 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 40:5 Error SyntaxError: Duplicated identifier. */ -/* @@? 44:37 Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ -/* @@? 46:5 Error SyntaxError: Decorators are not valid here. */ -/* @@? 52:5 Error SyntaxError: Decorators are not valid here. */ -/* @@? 55:6 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 55:8 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 59:21 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 61:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 61:16 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 64:23 Error SyntaxError: Identifier expected. */ -/* @@? 68:11 Error SyntaxError: Missing initializer in destructuring declaration. */ -/* @@? 71:5 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 71:7 Error SyntaxError: Unexpected token in enum member. */ -/* @@? 72:5 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 74:9 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 75:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 79:9 Error SyntaxError: Type parameter declaration expected. */ -/* @@? 79:9 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 79:12 Error SyntaxError: Expected '{', got '>'. */ -/* @@? 79:14 Error SyntaxError: Unexpected token. */ -/* @@? 81:22 Error SyntaxError: Required type parameters may not follow optional type parameters. */ -/* @@? 83:9 Error SyntaxError: Type parameter list cannot be empty. */ -/* @@? 86:14 Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@? 86:20 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 88:13 Error SyntaxError: Unexpected modifier. */ -/* @@? 89:15 Error SyntaxError: Unexpected modifier. */ -/* @@? 89:15 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 91:17 Error SyntaxError: 'static' modifier cannot appear on a parameter. */ -/* @@? 94:22 Error SyntaxError: A required parameter cannot follow an optional parameter. */ -/* @@? 95:10 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 95:29 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 95:41 Error SyntaxError: Binding 'eval' in strict mode is invalid. */ -/* @@? 95:41 Error SyntaxError: Binding 'arguments' in strict mode is invalid. */ -/* @@? 96:18 Error SyntaxError: Unexpected '?' for parameter. */ -/* @@? 96:26 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@? 96:26 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@? 96:26 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@? 98:29 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@? 99:29 Error SyntaxError: Parameter cannot have question mark and initializer. */ -/* @@? 99:42 Error SyntaxError: await is not allowed in arrow function parameters. */ -/* @@? 102:13 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 105:8 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 106:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 110:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 165:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 20:1 Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@? 21:9 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 24:8 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 27:13 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 31:14 Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@? 35:12 Error Syntax error ESY0181: Only ambient modules can use quoted names. */ +/* @@? 35:22 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 40:5 Error Syntax error ESY0215: Duplicated identifier. */ +/* @@? 44:37 Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@? 46:5 Error Syntax error ESY0183: Decorators are not valid here. */ +/* @@? 52:5 Error Syntax error ESY0183: Decorators are not valid here. */ +/* @@? 55:6 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 55:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 59:21 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 61:5 Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@? 61:16 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 64:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 68:11 Error Syntax error ESY0186: Missing initializer in destructuring declaration. */ +/* @@? 71:5 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@? 71:7 Error Syntax error ESY0178: Unexpected token in enum member. */ +/* @@? 72:5 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 74:9 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 75:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 79:9 Error Syntax error ESY0176: Type parameter declaration expected. */ +/* @@? 79:9 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 79:12 Error Syntax error ESY0230: Expected '{', got '>'. */ +/* @@? 79:14 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 81:22 Error Syntax error ESY0179: Required type parameters may not follow optional type parameters. */ +/* @@? 83:9 Error Syntax error ESY0191: Type parameter list cannot be empty. */ +/* @@? 86:14 Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@? 86:20 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 88:13 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 89:15 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 89:15 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 91:17 Error Syntax error ESY0232: 'static' modifier cannot appear on a parameter. */ +/* @@? 94:22 Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ +/* @@? 95:10 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 95:29 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 95:41 Error Syntax error ESY0190: Binding 'eval' in strict mode is invalid. */ +/* @@? 95:41 Error Syntax error ESY0182: Binding 'arguments' in strict mode is invalid. */ +/* @@? 96:18 Error Syntax error ESY0187: Unexpected '?' for parameter. */ +/* @@? 96:26 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@? 96:26 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@? 98:29 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@? 99:29 Error Syntax error ESY0216: Parameter cannot have question mark and initializer. */ +/* @@? 99:42 Error Syntax error ESY0046: await is not allowed in arrow function parameters. */ +/* @@? 102:13 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 105:8 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 106:5 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 110:5 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 237:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts b/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts index 8c59f19c69..3f8664f6bb 100644 --- a/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts +++ b/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts @@ -19,17 +19,13 @@ try {} catch (fgf) {} aaaaaaa /* @@ label5 */{} try /* @@ label6 */[] /* @@ label7 */finally {} -/* @@? 16:22 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 16:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:23 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 17:51 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 18:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:20 Error SyntaxError: Expected '{', got '['. */ -/* @@? 20:20 Error SyntaxError: Expected '{', got '['. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 36:1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@? 36:1 Error SyntaxError: Missing catch or finally clause. */ +/* @@@ label Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label2 Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token 'finally'. */ +/* @@@ label5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label6 Error Syntax error ESY0230: Expected '{', got '['. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token 'finally'. */ +/* @@? 37:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 37:1 Error Syntax error ESY0169: Missing catch or finally clause. */ diff --git a/ets2panda/test/ast/parser/ts/test-as-expression.ts b/ets2panda/test/ast/parser/ts/test-as-expression.ts index 56b3171f49..3ce3f2fa6b 100644 --- a/ets2panda/test/ast/parser/ts/test-as-expression.ts +++ b/ets2panda/test/ast/parser/ts/test-as-expression.ts @@ -15,4 +15,4 @@ var a = 5 as/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts index 1ccc5e93c3..2a02d96313 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts @@ -19,4 +19,4 @@ class Foo { a: string; /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts index d189cf44ca..c868871705 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts @@ -20,5 +20,5 @@ class Foo { b: string; /* @@ label2 */constructor(); } -/* @@@ label1 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@@ label2 Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label1 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@@ label2 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts index ea2c133598..7cb5fd4247 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts @@ -17,5 +17,5 @@ class Foo { constructor ?() { }; } -/* @@? 18:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected '('. */ +/* @@? 18:5 Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@? 18:17 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts index bbab046f31..bdb57d4c58 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts @@ -18,4 +18,4 @@ class Foo { constructor() { }; /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts index c214c788a6..b7b5cdb33f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts @@ -17,4 +17,4 @@ class Foo { static /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Static modifier can not appear on a constructor */ +/* @@@ label Error Syntax error ESY0000: Static modifier can not appear on a constructor */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts index fdec147939..8be3c1c245 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts @@ -18,4 +18,4 @@ class Foo { a() { } b() { } c() { } private static readonly declare d /* @@ label */e; } -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts index f33123bc3c..5bf5206b7d 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts @@ -18,6 +18,6 @@ class Foo { const a = 3; } -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token. */ -/* @@? 18:15 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:15 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts index d041f867ef..f751b4793d 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts @@ -18,6 +18,6 @@ class Foo { var a = 3; } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:11 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts index de5a5f1b3f..a567cd57ff 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts @@ -18,6 +18,6 @@ class Foo { let a = 3; } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:11 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts index 2c1ee6e93d..a6e26dc135 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts @@ -18,6 +18,6 @@ class Foo { function a(); } -/* @@? 18:14 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:14 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:15 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:16 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts index c974e0fd1c..0e8847f34b 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts @@ -18,4 +18,4 @@ class Foo { set /* @@ label */5(k) { } private get 5() { return } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts index 2d97cbc8dd..7f9a5cc95f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts @@ -18,4 +18,4 @@ class Foo { private get /* @@ label */5() { return } protected set 5(k) { } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts index 8b97572a18..590484e0df 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts @@ -17,4 +17,4 @@ class Foo { abstract /* @@ label */a() } -/* @@@ label Error SyntaxError: Abstract methods can only appear within an abstract class. */ +/* @@@ label Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts index d7fc4cecac..3f76503aa8 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts @@ -17,4 +17,4 @@ class Foo { private readonly [a]/* @@ label */(){} } -/* @@@ label Error SyntaxError: Class method can not be declare nor readonly */ +/* @@@ label Error Syntax error ESY0000: Class method can not be declare nor readonly */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts index 59a930fc94..5da800dedb 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts @@ -18,5 +18,5 @@ class Foo { static static a; } -/* @@? 18:12 Error SyntaxError: Unexpected modifier. */ -/* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed. */ +/* @@? 18:12 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 18:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts index aca44c435f..f353bac91e 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts @@ -17,4 +17,4 @@ class Foo { *b/* @@ label */; } -/* @@@ label Error SyntaxError: Expected '(' */ +/* @@@ label Error Syntax error ESY0000: Expected '(' */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts index acace0fa02..c958ba9511 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts @@ -17,4 +17,4 @@ class Foo { readonly /* @@ label */static a = "foo"; } -/* @@@ label Error SyntaxError: Unexpected modifier. */ +/* @@@ label Error Syntax error ESY0153: Unexpected modifier. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts index 21f5b66d81..d2123fd13c 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts @@ -18,4 +18,4 @@ class Foo { private get /* @@ label */5() { return } set 5(k) { } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts index 8472ae50ee..bcf138c714 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts @@ -18,6 +18,6 @@ declare class Foo { a() b() } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts index f553f84e33..7e4e443167 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts @@ -18,4 +18,4 @@ class Foo { a /* @@ label */b; } -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts index bbe0b20f43..5dd65b23f1 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts @@ -19,4 +19,4 @@ enum Foo { B = "foo", } -/* @@@ label Error SyntaxError: Unexpected token in enum member. */ +/* @@@ label Error Syntax error ESY0178: Unexpected token in enum member. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts index 65153bf5a9..cf2664cfd5 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts @@ -18,5 +18,5 @@ const enum Foo { G = 1, /* @@ label */2, /* @@ label1 */3 } -/* @@@ label Error SyntaxError: Unexpected token in enum member. */ -/* @@@ label1 Error SyntaxError: Unexpected token in enum member. */ +/* @@@ label Error Syntax error ESY0178: Unexpected token in enum member. */ +/* @@@ label1 Error Syntax error ESY0178: Unexpected token in enum member. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts index 6f12c1ed67..70a7649b07 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts @@ -19,4 +19,4 @@ const enum Foo { enum Foo {} -/* @@? 20:6 Error SyntaxError: Variable 'Foo' has already been declared. */ +/* @@? 20:6 Error Syntax error ESY0000: Variable 'Foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts index e3d003fd16..1a767e79fb 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts @@ -20,4 +20,4 @@ const enum Foo { } -/* @@? 19:12 Error SyntaxError: Variable 'Foo' has already been declared. */ +/* @@? 19:12 Error Syntax error ESY0000: Variable 'Foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ts/test-func-decl1.ts b/ets2panda/test/ast/parser/ts/test-func-decl1.ts index 3fcd175a9f..6370e3a904 100644 --- a/ets2panda/test/ast/parser/ts/test-func-decl1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-decl1.ts @@ -18,4 +18,4 @@ function foo() { this./* @@ label */#bar = "baz"; } -/* @@@ label Error SyntaxError: Private field 'bar' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'bar' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param1.ts b/ets2panda/test/ast/parser/ts/test-func-param1.ts index f16a2aada4..94b1539777 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param1.ts @@ -17,4 +17,4 @@ function foo(a, b?, c/* @@ label */) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter */ +/* @@@ label Error Syntax error ESY0000: A required parameter cannot follow an optional parameter */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param4.ts b/ets2panda/test/ast/parser/ts/test-func-param4.ts index 4e104b5927..79d0b7f8be 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param4.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param4.ts @@ -17,4 +17,4 @@ class A { get foo(this) { return; } /* @@ label */} -/* @@@ label Error SyntaxError: Getter must not have formal parameters. */ +/* @@@ label Error Syntax error ESY0058: Getter must not have formal parameters. */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param5.ts b/ets2panda/test/ast/parser/ts/test-func-param5.ts index 62eb41dd80..074cbfe76d 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param5.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param5.ts @@ -17,4 +17,4 @@ class A { constructor(constructor/* @@ label */) { } } -/* @@@ label Error SyntaxError: 'constructor' cannot be used as a parameter property name */ +/* @@@ label Error Syntax error ESY0000: 'constructor' cannot be used as a parameter property name */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param6.ts b/ets2panda/test/ast/parser/ts/test-func-param6.ts index 7f86b48c4b..a8470eda98 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param6.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param6.ts @@ -15,4 +15,4 @@ function foo([]?/* @@ label */) { } -/* @@@ label Error SyntaxError: A binding pattern parameter cannot be optional in an implementation signature. */ +/* @@@ label Error Syntax error ESY0000: A binding pattern parameter cannot be optional in an implementation signature. */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param7.ts b/ets2panda/test/ast/parser/ts/test-func-param7.ts index 6c399c9c5e..d99626c1bd 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param7.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param7.ts @@ -15,4 +15,4 @@ function foo(...a/* @@ label */?) { } -/* @@@ label Error SyntaxError: A rest parameter cannot be optional */ +/* @@@ label Error Syntax error ESY0000: A rest parameter cannot be optional */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param8.ts b/ets2panda/test/ast/parser/ts/test-func-param8.ts index 199bf613aa..7f61dff0c6 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param8.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param8.ts @@ -15,4 +15,4 @@ function foo(a?/* @@ label */= 5) { } -/* @@@ label Error SyntaxError: Parameter cannot have question mark and initializer */ +/* @@@ label Error Syntax error ESY0000: Parameter cannot have question mark and initializer */ diff --git a/ets2panda/test/ast/parser/ts/test-interface2.ts b/ets2panda/test/ast/parser/ts/test-interface2.ts index 9e3c4b26f6..7c8b5bc79a 100644 --- a/ets2panda/test/ast/parser/ts/test-interface2.ts +++ b/ets2panda/test/ast/parser/ts/test-interface2.ts @@ -15,5 +15,5 @@ interface /* @@ label */5 { } -/* @@@ label Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@@ label Error SyntaxError: Number, string or computed value property name '5' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0315: Number, string or computed value property name '5' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ diff --git a/ets2panda/test/ast/parser/ts/test-interface3.ts b/ets2panda/test/ast/parser/ts/test-interface3.ts index d1b5c8ff3c..2de4f6f2a8 100644 --- a/ets2panda/test/ast/parser/ts/test-interface3.ts +++ b/ets2panda/test/ast/parser/ts/test-interface3.ts @@ -18,6 +18,6 @@ interface foo extends 5 { } -/* @@? 17:23 Error SyntaxError: Identifier expected. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:25 Error SyntaxError: Identifier expected. */ +/* @@? 17:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:25 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-intersection1.ts b/ets2panda/test/ast/parser/ts/test-intersection1.ts index 5f7a74d2ee..3efa0e98dc 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection1.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection1.ts @@ -15,4 +15,4 @@ var a: & /* @@ label */| string; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-intersection2.ts b/ets2panda/test/ast/parser/ts/test-intersection2.ts index 21c9d47287..c67d973a18 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection2.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection2.ts @@ -15,4 +15,4 @@ var a: & & string; -/* @@? 17:10 Error SyntaxError: Type expected */ +/* @@? 17:10 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-intersection3.ts b/ets2panda/test/ast/parser/ts/test-intersection3.ts index 1033678282..6e5806021b 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection3.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection3.ts @@ -15,4 +15,4 @@ var a: string &/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts index 6640a31667..aad6fe3db0 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts @@ -15,4 +15,4 @@ declare var a = /* @@ label */5; -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts index 13ae8554e5..80c830acb2 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts @@ -17,4 +17,4 @@ declare class Foo { public *g/* @@ label */() } -/* @@@ label Error SyntaxError: Generators are not allowed in an ambient context. */ +/* @@@ label Error Syntax error ESY0000: Generators are not allowed in an ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts index b535684a38..a8bdeb3b39 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts @@ -17,4 +17,4 @@ declare class Foo { public g() /* @@ label */{ }; } -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts index 410a1c868d..79bcf62828 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts @@ -17,4 +17,4 @@ declare class Foo { private static a = /* @@ label */3; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts index 42a17db689..019ce6e23f 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts @@ -17,4 +17,4 @@ class Foo { private static declare a = /* @@ label */3; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts index 5d5853b366..1f4fde4d7d 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts @@ -15,4 +15,4 @@ declare let a = /* @@ label */5; -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts index 67ef724d0d..802a5fefe5 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts @@ -15,4 +15,4 @@ declare /* @@ label */a = 5; -/* @@@ label Error SyntaxError: Unexpected token 'a'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'a'. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts index 0afef8fac7..e0edd7e156 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts @@ -15,4 +15,4 @@ declare function a() /* @@ label */{ }; -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts index 6948187728..742693b55c 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts @@ -17,4 +17,4 @@ declare class Foo { private static get a() /* @@ label */{ return } } -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts index 531c13878b..83302ee573 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts @@ -17,4 +17,4 @@ declare class Foo { public async g/* @@ label */() } -/* @@@ label Error SyntaxError: 'async' modifier cannot be used in an ambient context. */ +/* @@@ label Error Syntax error ESY0000: 'async' modifier cannot be used in an ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test-member-expression1.ts b/ets2panda/test/ast/parser/ts/test-member-expression1.ts index 5d8d1a5857..7651cbec29 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression1.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression1.ts @@ -17,4 +17,4 @@ var a = {foo : {bar : {baz : 5}}}; a?.foo?.bar?.baz /* @@ label */= a?.foo?.bar?.baz; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ts/test-member-expression2.ts b/ets2panda/test/ast/parser/ts/test-member-expression2.ts index afd65877fe..12372fa452 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression2.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression2.ts @@ -17,4 +17,4 @@ var a = [0, 1, 2, 3, 4]; a?.[0] /* @@ label */= a?.[0]; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts index 8348e42b3f..f897000580 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts @@ -15,4 +15,4 @@ type Foo = string extends number /* @@ label */extends string ?number: string; -/* @@@ label Error SyntaxError: '?' expected. */ +/* @@@ label Error Syntax error ESY0000: '?' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts index fdff272c55..14e6c062de 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number extends /* @@ label */: string; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts index b25013c521..b48b48342b 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number /* @@ label */string : string; -/* @@@ label Error SyntaxError: ':' expected. */ +/* @@@ label Error Syntax error ESY0000: ':' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts index f94f025eb6..b7b0ca192a 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number : string extends/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts index 7dd7ebaec4..ede987a9dd 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts @@ -15,4 +15,4 @@ type Foo = /* @@ label */infer string extends number ? number : string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts index 1a52162322..c87fbefc0e 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? /* @@ label */infer number : string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts index 20a4868ef1..699326a122 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number : /* @@ label */infer string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts index d57ad8eef8..398c60870f 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts @@ -15,4 +15,4 @@ var ctor: new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ +/* @@@ label Error Syntax error ESY0000: '=>' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts index f1987fd942..c869902110 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts @@ -15,4 +15,4 @@ var ctor: abstract new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ +/* @@@ label Error Syntax error ESY0000: '=>' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts index 4e021ae027..2142331c8d 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts @@ -15,4 +15,4 @@ var ctor1: new /* @@ label */abstract (a: number, b: string) => number; -/* @@@ label Error SyntaxError: '(' expected */ +/* @@@ label Error Syntax error ESY0000: '(' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts index 7a88631854..e83c80b05c 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts @@ -15,4 +15,4 @@ var ctor1: abstract /* @@ label */(a: number, b: string) => number; -/* @@@ label Error SyntaxError: Unexpected token '('. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts index 8956e942b3..325a5e2bd4 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts @@ -15,4 +15,4 @@ type Foo = { /* @@ label */+ s readonly[prop in keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts index f942fa9a45..07f465d0fd 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts @@ -15,4 +15,4 @@ type Foo = { readonly /* @@ label */+ [prop in keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts index 1d5b12b45b..75ed409f03 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop /* @@ label */keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts index 05ec5c5229..cfbb91224d 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T /* @@ label */+] }; -/* @@@ label Error SyntaxError: ']' expected */ +/* @@@ label Error Syntax error ESY0000: ']' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts index d6bf102d29..49eee3418a 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T]+/* @@ label */-? }; -/* @@@ label Error SyntaxError: '?' expected. */ +/* @@@ label Error Syntax error ESY0000: '?' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts index 73ecaca55e..e632127cd6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T]/* @@ label */3 }; -/* @@@ label Error SyntaxError: ';' expected */ +/* @@@ label Error Syntax error ESY0000: ';' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts index bb40875716..58767c959b 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T];/* @@ label */3 }; -/* @@@ label Error SyntaxError: '}' expected */ +/* @@@ label Error Syntax error ESY0000: '}' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts index 11b7e20a6c..ef3484f681 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts @@ -15,4 +15,4 @@ function Foo(/* @@ label */public readonly a) { } -/* @@@ label Error SyntaxError: A parameter property is only allowed in a constructor implementation. */ +/* @@@ label Error Syntax error ESY0000: A parameter property is only allowed in a constructor implementation. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts index 7e3da99c0d..c3c1c710ec 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly { bar } = { bar: 2 }) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts index 787e155e62..097125eaa6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly [bar]) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts index c04ef61da5..d73856ec8f 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly { bar }) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts index 88ff463310..67b8c6bc98 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts @@ -18,4 +18,4 @@ class Foo { constructor() { }; a(/* @@ label */public a) { }; } -/* @@@ label Error SyntaxError: A parameter property is only allowed in a constructor implementation. */ +/* @@@ label Error Syntax error ESY0000: A parameter property is only allowed in a constructor implementation. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts index 3aa30e6259..fc6867f7b7 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts @@ -17,5 +17,5 @@ class Foo { constructor(readonly readonly readonly) { }; } -/* @@? 18:26 Error SyntaxError: Unexpected modifier. */ -/* @@? 18:26 Error SyntaxError: Duplicated modifier is not allowed. */ +/* @@? 18:26 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 18:26 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts index 770f3f57c2..b18c4bdd21 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts @@ -17,4 +17,4 @@ class Foo { constructor(private /* @@ label */static readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'static' modifier cannot appear on a parameter. */ +/* @@@ label Error Syntax error ESY0232: 'static' modifier cannot appear on a parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts index 149390250b..590c4b9359 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts @@ -17,4 +17,4 @@ class Foo { constructor(private /* @@ label */async readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'async' modifier cannot appear on a parameter. */ +/* @@@ label Error Syntax error ESY0232: 'async' modifier cannot appear on a parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts index 7f1e1e5216..a1346c68ef 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts @@ -17,4 +17,4 @@ class Foo { constructor(private /* @@ label */declare readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'declare' modifier cannot appear on a parameter. */ +/* @@@ label Error Syntax error ESY0232: 'declare' modifier cannot appear on a parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts index ad1d61e322..ca960fa1ca 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts @@ -17,4 +17,4 @@ class Foo { constructor(private readonly readonly, /* @@ label */private readonly readonly) { }; } -/* @@@ label Error SyntaxError: Variable 'readonly' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'readonly' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts index 049b276d8e..b723941cba 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly ...rest) { }; } -/* @@@ label Error SyntaxError: A parameter property cannot be declared using a rest parameter. */ +/* @@@ label Error Syntax error ESY0000: A parameter property cannot be declared using a rest parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts index 47a2a3702a..7ecee3e0b6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly [bar] = [2]) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts index bbefc72aa7..5e55bd2268 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts @@ -15,4 +15,4 @@ var var1: (is: number | string) => asserts is/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts index e64ab6ac44..50a184aac6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts @@ -16,5 +16,5 @@ function function1(is: number | string): asserts is is number /* @@ label */{ /* @@ label1 */return }; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ -/* @@@ label1 Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts index fb523ea53a..ab89843e4c 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts @@ -15,4 +15,4 @@ var var1: (is: number | string) => asserts is is /* @@ label */number; -/* @@@ label Error SyntaxError: Unexpected token 'number'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'number'. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts index 90738ed82a..ec12146439 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts @@ -16,5 +16,5 @@ function function1(is: number | string): asserts (number | string) /* @@ label */{ /* @@ label1 */return }; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ -/* @@@ label1 Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts index 203bb87d07..0c021ec7b1 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts @@ -16,4 +16,4 @@ var var1: (is: number | string) => asserts /* @@ label */(number | string); -/* @@@ label Error SyntaxError: Unexpected token '('. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts index 57bdabda58..ac7fd67841 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts @@ -16,6 +16,6 @@ function function1(is: number | string): (number | string) is /* @@ label */number /* @@ label1 */{ /* @@ label2 */return }; -/* @@@ label Error SyntaxError: Unexpected token 'number'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label2 Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label2 Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts index e85d136f33..7eff40fb49 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts @@ -16,5 +16,5 @@ var var1: (is: number | string) => (number | string) /* @@ label */is /* @@ label1 */number; -/* @@@ label Error SyntaxError: Unexpected token 'is'. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'number'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'is'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'number'. */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts index 65623f6e6f..54d701645b 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts @@ -15,4 +15,4 @@ var a: [a: number /* @@ label */string] -/* @@@ label Error SyntaxError: ',' expected. */ +/* @@@ label Error Syntax error ESY0000: ',' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts index a35f749744..cc9d3d4f04 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts @@ -15,4 +15,4 @@ var a: [number, /* @@ label */a: string] -/* @@@ label Error SyntaxError: Tuple members must all have names or all not have names */ +/* @@@ label Error Syntax error ESY0000: Tuple members must all have names or all not have names */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts index 50d373ad43..b9787936e9 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts @@ -15,4 +15,4 @@ var a: [/* @@ label */?number] -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts index 96b803c26c..36ea9037b2 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts @@ -15,4 +15,4 @@ var a: [a?: number, b/* @@ label */: string] -/* @@@ label Error SyntaxError: A required element cannot follow an optional element */ +/* @@@ label Error Syntax error ESY0000: A required element cannot follow an optional element */ diff --git a/ets2panda/test/ast/parser/ts/test-type-alias1.ts b/ets2panda/test/ast/parser/ts/test-type-alias1.ts index 56857f2956..32660741b7 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias1.ts @@ -15,4 +15,4 @@ type /* @@ label */5 = number; -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@@ label Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/parser/ts/test-type-alias2.ts b/ets2panda/test/ast/parser/ts/test-type-alias2.ts index 29a44170b2..495e24216a 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias2.ts @@ -15,4 +15,4 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: '=' expected */ +/* @@@ label Error Syntax error ESY0000: '=' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-type-alias3.ts b/ets2panda/test/ast/parser/ts/test-type-alias3.ts index 58b78a4eda..c43e7eca9f 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias3.ts @@ -15,4 +15,4 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-type-literal1.ts b/ets2panda/test/ast/parser/ts/test-type-literal1.ts index b89c916aef..983d8f356f 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal1.ts @@ -15,4 +15,4 @@ var a: { [a /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ diff --git a/ets2panda/test/ast/parser/ts/test-type-literal2.ts b/ets2panda/test/ast/parser/ts/test-type-literal2.ts index c34c624295..00c92b404a 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal2.ts @@ -16,5 +16,5 @@ var a: { new a()} -/* @@? 17:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:14 Error SyntaxError: Unexpected token in property key */ +/* @@? 17:14 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 17:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ts/test-type-literal3.ts b/ets2panda/test/ast/parser/ts/test-type-literal3.ts index 67cb855452..e862d6c97e 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal3.ts @@ -15,4 +15,4 @@ var a: { a /* @@ label */new ()} -/* @@@ label Error SyntaxError: Unexpected token, expected ','. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ts/test-type-query1.ts b/ets2panda/test/ast/parser/ts/test-type-query1.ts index 4c318a3be3..cbdb4a01c0 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query1.ts @@ -15,4 +15,4 @@ var a: typeof /* @@ label */5; -/* @@@ label Error SyntaxError: Identifier expected. */ +/* @@@ label Error Syntax error ESY0000: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-type-query2.ts b/ets2panda/test/ast/parser/ts/test-type-query2.ts index 0d818a460f..a11235a2d1 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query2.ts @@ -15,5 +15,4 @@ var a: typeof -/* @@@ label Error SyntaxError: Identifier expected. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0000: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ts/test_class_constructor.ts b/ets2panda/test/ast/parser/ts/test_class_constructor.ts index d525f7e842..f2223d5538 100644 --- a/ets2panda/test/ast/parser/ts/test_class_constructor.ts +++ b/ets2panda/test/ast/parser/ts/test_class_constructor.ts @@ -17,4 +17,4 @@ class MyClass { /* @@ label */"constructor" = 42; } -/* @@@ label Error SyntaxError: Classes may not have a field named 'constructor'. */ +/* @@@ label Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator1.ts b/ets2panda/test/ast/parser/ts/test_decorator1.ts index b9f36f8cb8..b8ba36ed0a 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator1.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator1.ts @@ -15,4 +15,4 @@ function foo(/* @@ label */@dec a) { }; -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator2.ts b/ets2panda/test/ast/parser/ts/test_decorator2.ts index 529242eebe..e1a2e5dc34 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator2.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator2.ts @@ -18,4 +18,4 @@ class Foo { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator4.ts b/ets2panda/test/ast/parser/ts/test_decorator4.ts index 8f9f96b6bd..25708dc655 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator4.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator4.ts @@ -17,4 +17,4 @@ class Foo { /* @@ label */@dec a(); } -/* @@@ label Error SyntaxError: A decorator can only decorate a method implementation, not an overload. */ +/* @@@ label Error Syntax error ESY0000: A decorator can only decorate a method implementation, not an overload. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator5.ts b/ets2panda/test/ast/parser/ts/test_decorator5.ts index c03cf07a95..9f97bcbd2d 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator5.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator5.ts @@ -17,4 +17,4 @@ class Foo { /* @@ label */@dec constructor() { }; } -/* @@@ label Error SyntaxError: Decorators are not valid here. */ +/* @@@ label Error Syntax error ESY0183: Decorators are not valid here. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator6.ts b/ets2panda/test/ast/parser/ts/test_decorator6.ts index 05ca31aae0..de5e2cddc7 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator6.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator6.ts @@ -18,5 +18,5 @@ class Foo { /* @@ label */@dec [a: number]: /* @@ label1 */string; } -/* @@@ label Error SyntaxError: Decorators are not valid here. */ -/* @@@ label1 Error SyntaxError: An index signature must have a type annotation */ +/* @@@ label1 Error Syntax error ESY0000: An index signature must have a type annotation */ +/* @@@ label Error Syntax error ESY0183: Decorators are not valid here. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator7.ts b/ets2panda/test/ast/parser/ts/test_decorator7.ts index 46fab91f86..05371f7dac 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator7.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator7.ts @@ -17,4 +17,4 @@ /* @@ label */@bar export default function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator8.ts b/ets2panda/test/ast/parser/ts/test_decorator8.ts index 5b8940b432..f8731cd14f 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator8.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator8.ts @@ -17,4 +17,4 @@ /* @@ label */@bar export function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_generators.ts b/ets2panda/test/ast/parser/ts/test_generators.ts index 06fe8230f5..9b3d972efa 100644 --- a/ets2panda/test/ast/parser/ts/test_generators.ts +++ b/ets2panda/test/ast/parser/ts/test_generators.ts @@ -18,5 +18,5 @@ a: yield 1; } -/* @@@ label Error SyntaxError: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ -/* @@@ label Error SyntaxError: Generators can only be declared at the top level or inside a block. */ +/* @@@ label Error Syntax error ESY0198: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ +/* @@@ label Error Syntax error ESY0173: Generators can only be declared at the top level or inside a block. */ diff --git a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts index 41ee6d2676..fb25a888e7 100644 --- a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts +++ b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts @@ -15,4 +15,4 @@ async (()=> {}, a) /* @@ label */=> expression; -/* @@@ label Error SyntaxError: Insufficient formal parameter in arrow function. */ +/* @@@ label Error Syntax error ESY0064: Insufficient formal parameter in arrow function. */ diff --git a/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts b/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts index 555dfa4bbc..37e9a96733 100644 --- a/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts +++ b/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts @@ -15,4 +15,4 @@ ({ a: 1 } = {})/* @@ label */; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts index b1817950d8..0dca897323 100644 --- a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts +++ b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts @@ -15,4 +15,4 @@ while (true) async /* @@ label */function a() { }; -/* @@@ label Error SyntaxError: Lexical declaration is not allowed in single statement context. */ +/* @@@ label Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ diff --git a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts index 823d5add6d..99f1d2114e 100644 --- a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts +++ b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts @@ -15,4 +15,4 @@ while (true) /* @@ label */class a { }; -/* @@@ label Error SyntaxError: Lexical declaration is not allowed in single statement context. */ +/* @@@ label Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module1.ts b/ets2panda/test/ast/parser/ts/test_module1.ts index 7d5b5e89bd..91b937e152 100644 --- a/ets2panda/test/ast/parser/ts/test_module1.ts +++ b/ets2panda/test/ast/parser/ts/test_module1.ts @@ -17,4 +17,4 @@ declare module Foo { /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module2.ts b/ets2panda/test/ast/parser/ts/test_module2.ts index 84c40c4ac3..04ecdec684 100644 --- a/ets2panda/test/ast/parser/ts/test_module2.ts +++ b/ets2panda/test/ast/parser/ts/test_module2.ts @@ -17,4 +17,4 @@ export declare module Foo { /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module3.ts b/ets2panda/test/ast/parser/ts/test_module3.ts index 3860d86a14..53c520fc81 100644 --- a/ets2panda/test/ast/parser/ts/test_module3.ts +++ b/ets2panda/test/ast/parser/ts/test_module3.ts @@ -17,4 +17,4 @@ declare module Foo { export /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module4.ts b/ets2panda/test/ast/parser/ts/test_module4.ts index 18bb793180..debefc26fb 100644 --- a/ets2panda/test/ast/parser/ts/test_module4.ts +++ b/ets2panda/test/ast/parser/ts/test_module4.ts @@ -17,4 +17,4 @@ export declare module Foo { export /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module5.ts b/ets2panda/test/ast/parser/ts/test_module5.ts index 7356e6b147..61e5022fce 100644 --- a/ets2panda/test/ast/parser/ts/test_module5.ts +++ b/ets2panda/test/ast/parser/ts/test_module5.ts @@ -17,4 +17,4 @@ declare module "foo" { import a = require(/* @@ label */bar); } -/* @@@ label Error SyntaxError: String literal expected. */ +/* @@@ label Error Syntax error ESY0000: String literal expected. */ diff --git a/ets2panda/test/ast/parser/ts/test_module6.ts b/ets2panda/test/ast/parser/ts/test_module6.ts index 7c30c6bf5e..2f7aa9bc66 100644 --- a/ets2panda/test/ast/parser/ts/test_module6.ts +++ b/ets2panda/test/ast/parser/ts/test_module6.ts @@ -17,4 +17,4 @@ declare module "foo" { import a = require("bar"/* @@ label */[0]); } -/* @@@ label Error SyntaxError: ')' expected. */ +/* @@@ label Error Syntax error ESY0000: ')' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts b/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts index 074a68340c..1caa3756df 100644 --- a/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts +++ b/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts @@ -14,4 +14,4 @@ */ const /* @@ label */[...rest, x] = [1, 2, 3]; -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts b/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts index 327c4c4735..eb171d141e 100644 --- a/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts +++ b/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts @@ -15,4 +15,4 @@ function f({ ...{ x } /* @@ label */}) {} -/* @@@ label Error SyntaxError: RestParameter must be followed by an identifier in declaration contexts */ +/* @@@ label Error Syntax error ESY0156: RestParameter must be followed by an identifier in declaration contexts */ diff --git a/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts b/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts index 2b09f42bf3..73c81f2332 100644 --- a/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts +++ b/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts @@ -17,4 +17,4 @@ class MyClass { static /* @@ label */prototype = {}; } -/* @@@ label Error SyntaxError: Classes may not have static property named prototype. */ +/* @@@ label Error Syntax error ESY0155: Classes may not have static property named prototype. */ diff --git a/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts b/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts index 7f8e7cd258..452e48d6b1 100644 --- a/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts +++ b/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts @@ -16,4 +16,4 @@ a: /* @@ label */function foo() { } -/* @@@ label Error SyntaxError: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ +/* @@@ label Error Syntax error ESY0198: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ diff --git a/ets2panda/test/ast/parser/ts/test_this_type1.ts b/ets2panda/test/ast/parser/ts/test_this_type1.ts index be642e88bc..7f3c2b38a3 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type1.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type1.ts @@ -15,4 +15,4 @@ var a: /* @@ label */this; -/* @@@ label Error SyntaxError: A 'this' type is available only in a non-static member of a class or interface. */ +/* @@@ label Error Syntax error ESY0000: A 'this' type is available only in a non-static member of a class or interface. */ diff --git a/ets2panda/test/ast/parser/ts/test_this_type2.ts b/ets2panda/test/ast/parser/ts/test_this_type2.ts index 723834f278..3c75f6623f 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type2.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type2.ts @@ -17,4 +17,4 @@ class A { static a: number | /* @@ label */this; } -/* @@@ label Error SyntaxError: A 'this' type is available only in a non-static member of a class or interface. */ +/* @@@ label Error Syntax error ESY0000: A 'this' type is available only in a non-static member of a class or interface. */ diff --git a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts index a611c1c8f5..d0b5bd192f 100644 --- a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts +++ b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts @@ -17,4 +17,4 @@ const obj = { /* @@ label */+: 1 }; -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts index 32f77654e0..f1d5533392 100644 --- a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts +++ b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts @@ -18,8 +18,8 @@ function* gen() { var /* @@ label */yi\u0065ld /* @@ label1 */= 123; } -/* @@@ label Error SyntaxError: Escape sequences are not allowed in keyword. */ -/* @@@ label Error SyntaxError: Unexpected token. */ -/* @@@ label Error SyntaxError: Unexpected token 'yield'. */ -/* @@@ label Error SyntaxError: Unexpected identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ +/* @@@ label Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'yield'. */ +/* @@@ label Error Syntax error ESY0045: Unexpected identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts index 9d968c5565..df4cd2dc5f 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts @@ -17,4 +17,4 @@ function foo(...number: int[]/* @@ label */,): int { return number[0] } -/* @@@ label Error SyntaxError: A rest parameter must be last in parameter list */ +/* @@@ label Error Syntax error ESY0000: A rest parameter must be last in parameter list */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts index 7eb947a903..41d5aef9ec 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts @@ -19,4 +19,4 @@ class C { let a = new C(12,) // OK -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts index c30d5c3a7b..d02a1c2aea 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts @@ -17,4 +17,4 @@ function foo3(/* @@ label */, number: int): int { return number } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts index 9518bba08f..72cf2c2d8b 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts @@ -27,10 +27,10 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 24:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 25:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 27:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 27:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:5 Error SyntaxError: Unexpected token ','. */ +/* @@? 24:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 25:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 27:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 27:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 28:5 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts index 4c56f59de6..c7cdcb8cb1 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts @@ -18,4 +18,4 @@ declare namespace a /* @@ label */let a: int; } -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts index 7bcdfead13..696691794b 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts @@ -19,5 +19,5 @@ class Foo { /* @@ label */constructor/* @@ label1 */?() { }; } -/* @@@ label Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '('. */ +/* @@@ label Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts index 3f98921b89..9c0e27555e 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts @@ -17,8 +17,4 @@ class Foo { bar! = Int } -/* @@? 17:8 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:8 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 17:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts index a0326ee542..5c62cc6dc5 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts @@ -17,8 +17,4 @@ function printMagicIndex(arr) { console.log(arr?.[42}); } -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts index 781564443d..88648b5f48 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts @@ -16,7 +16,4 @@ export { a as 6, c} from "foo" -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} */ \ No newline at end of file +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts index dcc9d19089..fd70b8d684 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts @@ -15,7 +15,4 @@ declare module "foo" -/* @@? 22:1 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_16.ts b/ets2panda/test/ast/parser/ts/unexpected_token_16.ts index f742889b5a..ae427f99b2 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 d0b5cc4c58..012592b655 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_17.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_17.ts @@ -18,10 +18,10 @@ abstract /* @@ label */foo/* @@ label1 */(1 /* @@ label2 */> 0/* @@ label3 */) / } -/* @@@ label Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '('. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label4 Error SyntaxError: Unexpected token. */ -/* @@@ label5 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label6 Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label6 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label4 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label5 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts index 31b139aadf..ab751b1de1 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts @@ -16,4 +16,4 @@ try {} catch (e: Error) {} finally /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts index f16aadec69..836a49b2c5 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts @@ -16,8 +16,4 @@ function 8274() -/* @@? 17:10 Error SyntaxError: Unexpected token, expected function identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected function identifier. */ +/* @@? 17:10 Error Syntax error ESY0147: Unexpected token, expected function identifier. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts index 8fc4d10d94..fb9f1fa514 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts @@ -16,9 +16,9 @@ import {^7foo} from "." -/* @@? 17:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '.'. */ +/* @@? 17:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:10 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:10 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 17:11 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '.'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts index 9bba340e00..5d6a64002f 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts @@ -16,5 +16,5 @@ import foo -/* @@? 21:1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 21:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts index b5f57ff54a..08fea09b16 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts @@ -17,5 +17,4 @@ import foo frm from -/* @@@ label Error SyntaxError: Unexpected token, expected string literal. */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts index d8bc503952..3f309b1859 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts @@ -17,7 +17,7 @@ export {hehe^, foo} -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token '^'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts index 61db49560d..328232a9c8 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts @@ -17,6 +17,5 @@ class B {} class A extends B -/* @@@ label Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts index f3f09596da..c078b7f9f9 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts @@ -18,7 +18,6 @@ declare namespace /* @@ label */^/* @@ label1 */a { let a: int; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 26:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt index 95df6340cd..4b24d44992 100644 --- a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt +++ b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt @@ -614,4 +614,4 @@ } } } -TypeError: Cannot use type 'void' as value. [ConditionalExpressionCallVoidNeg.ets:20:17] +[ConditionalExpressionCallVoidNeg.ets:20:17] Semantic error ESE0078: Cannot use type 'void' as value. diff --git a/ets2panda/test/compiler/ets/FunctionType2-expected.txt b/ets2panda/test/compiler/ets/FunctionType2-expected.txt index 47773f7ec7..fdd211f516 100644 --- a/ets2panda/test/compiler/ets/FunctionType2-expected.txt +++ b/ets2panda/test/compiler/ets/FunctionType2-expected.txt @@ -806,4 +806,4 @@ } } } -TypeError: Variable 'func' is used before being assigned. [FunctionType2.ets:23:11] +[FunctionType2.ets:23:11] Semantic error ESE0375: Variable 'func' is used before being assigned. diff --git a/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt b/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt index 9798e81dae..05c9949533 100644 --- a/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt +++ b/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt @@ -1293,10 +1293,10 @@ } } } -TypeError: A is abstract therefore cannot be instantiated. [abstractNewClassInstanceExpression.ets:26:14] -SyntaxError: Unexpected token '{'. [abstractNewClassInstanceExpression.ets:26:22] -TypeError: Method foo(): void in B not overriding any method [abstractNewClassInstanceExpression.ets:27:21] -SyntaxError: Label must be followed by a loop statement. [abstractNewClassInstanceExpression.ets:32:11] -SyntaxError: Class cannot be used as object. [abstractNewClassInstanceExpression.ets:32:11] -SyntaxError: Unexpected token '{'. [abstractNewClassInstanceExpression.ets:32:23] -SyntaxError: Unexpected token '}'. [abstractNewClassInstanceExpression.ets:35:1] +[abstractNewClassInstanceExpression.ets:26:14] Semantic error ESE0052: A is abstract therefore cannot be instantiated. +[abstractNewClassInstanceExpression.ets:26:22] Syntax error ESY0227: Unexpected token '{'. +[abstractNewClassInstanceExpression.ets:27:21] Semantic error ESE0136: Method foo(): void in B not overriding any method +[abstractNewClassInstanceExpression.ets:32:11] Syntax error ESY0038: Label must be followed by a loop statement. +[abstractNewClassInstanceExpression.ets:32:11] Syntax error ESY0318: Class cannot be used as object. +[abstractNewClassInstanceExpression.ets:32:23] Syntax error ESY0227: Unexpected token '{'. +[abstractNewClassInstanceExpression.ets:35:1] Syntax error ESY0227: Unexpected token '}'. diff --git a/ets2panda/test/compiler/ets/func-ref-private-expected.txt b/ets2panda/test/compiler/ets/func-ref-private-expected.txt index 37bf0bf103..b806349b5e 100644 --- a/ets2panda/test/compiler/ets/func-ref-private-expected.txt +++ b/ets2panda/test/compiler/ets/func-ref-private-expected.txt @@ -1077,4 +1077,4 @@ } } } -TypeError: Private method is used as value [func-ref-private.ets:24:19] +[func-ref-private.ets:24:19] Semantic error ESE0306: Private method is used as value diff --git a/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt b/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt index 062eb8492b..e38e2326a0 100644 --- a/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt +++ b/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt @@ -903,6 +903,6 @@ } } } -TypeError: Function foo with this assembly signature already declared. [functions_with_ambiguous_rest_parameter.ets:20:1] -TypeError: Call to `foo` is ambiguous [functions_with_ambiguous_rest_parameter.ets:25:5] -TypeError: Reference to foo is ambiguous [functions_with_ambiguous_rest_parameter.ets:25:5] +[functions_with_ambiguous_rest_parameter.ets:20:1] Semantic error ESE0131: Function foo with this assembly signature already declared. +[functions_with_ambiguous_rest_parameter.ets:25:5] Semantic error ESE0129: Call to `foo` is ambiguous +[functions_with_ambiguous_rest_parameter.ets:25:5] Semantic error ESE0126: Reference to foo is ambiguous diff --git a/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt b/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt index 1f93b34eb8..14897472ba 100644 --- a/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt +++ b/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt @@ -25424,5 +25424,5 @@ } } } -TypeError: Expected 1 arguments, got 3. [generic_arrayaslist.ets:115:9] -TypeError: No matching call signature for assertTrue(Int, Int, "No data to popBack in ArrayAsList!") [generic_arrayaslist.ets:115:9] +[generic_arrayaslist.ets:115:9] Semantic error ESE0124: Expected 1 arguments, got 3. +[generic_arrayaslist.ets:115:9] Semantic error ESE0127: No matching call signature for assertTrue(Int, Int, "No data to popBack in ArrayAsList!") diff --git a/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt index 84f87a126b..1f5ce32c80 100644 --- a/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt +++ b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt @@ -1834,7 +1834,7 @@ } } } -TypeError: Can't resolve array type [inferTypeOfArray.ets:17:9] -TypeError: Can't resolve array type [inferTypeOfArray.ets:21:9] -TypeError: Indexed access is not supported for such expression type. [inferTypeOfArray.ets:23:1] -TypeError: Indexed access is not supported for such expression type. [inferTypeOfArray.ets:24:1] +[inferTypeOfArray.ets:17:9] Semantic error ESE0301: Can't resolve array type +[inferTypeOfArray.ets:21:9] Semantic error ESE0301: Can't resolve array type +[inferTypeOfArray.ets:23:1] Semantic error ESE0252: Indexed access is not supported for such expression type. +[inferTypeOfArray.ets:24:1] Semantic error ESE0252: Indexed access is not supported for such expression type. diff --git a/ets2panda/test/compiler/js/many_locals_1-expected.txt b/ets2panda/test/compiler/js/many_locals_1-expected.txt index e84e2bd324..8ed5fb1e35 100644 --- a/ets2panda/test/compiler/js/many_locals_1-expected.txt +++ b/ets2panda/test/compiler/js/many_locals_1-expected.txt @@ -1,17032 +1 @@ -{ - "type": "Program", - "statements": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "f2", - "decorators": [], - "loc": { - "start": { - "line": 16, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "ArrowFunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": true, - "params": [], - "body": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "f2", - "decorators": [], - "loc": { - "start": { - "line": 16, - "column": 16, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 18, - "program": "many_locals_1.js" - } - } - }, - "arguments": [], - "optional": false, - "loc": { - "start": { - "line": 16, - "column": 16, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 16, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 16, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 16, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 16, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 21, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x0", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 0, - "loc": { - "start": { - "line": 18, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x1", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 1, - "loc": { - "start": { - "line": 19, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 19, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x2", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 2, - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 20, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x3", - "decorators": [], - "loc": { - "start": { - "line": 21, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 3, - "loc": { - "start": { - "line": 21, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 21, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 21, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x4", - "decorators": [], - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 4, - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 22, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x5", - "decorators": [], - "loc": { - "start": { - "line": 23, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 5, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x6", - "decorators": [], - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 6, - "loc": { - "start": { - "line": 24, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 24, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x7", - "decorators": [], - "loc": { - "start": { - "line": 25, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 7, - "loc": { - "start": { - "line": 25, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 25, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 25, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x8", - "decorators": [], - "loc": { - "start": { - "line": 26, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 8, - "loc": { - "start": { - "line": 26, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 26, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x9", - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 9, - "loc": { - "start": { - "line": 27, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 27, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x10", - "decorators": [], - "loc": { - "start": { - "line": 28, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 10, - "loc": { - "start": { - "line": 28, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 28, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 28, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x11", - "decorators": [], - "loc": { - "start": { - "line": 29, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 11, - "loc": { - "start": { - "line": 29, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 29, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 29, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x12", - "decorators": [], - "loc": { - "start": { - "line": 30, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 12, - "loc": { - "start": { - "line": 30, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 30, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 30, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x13", - "decorators": [], - "loc": { - "start": { - "line": 31, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 13, - "loc": { - "start": { - "line": 31, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 31, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 31, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x14", - "decorators": [], - "loc": { - "start": { - "line": 32, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 14, - "loc": { - "start": { - "line": 32, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 32, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 32, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x15", - "decorators": [], - "loc": { - "start": { - "line": 33, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 15, - "loc": { - "start": { - "line": 33, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 33, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 33, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x16", - "decorators": [], - "loc": { - "start": { - "line": 34, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 16, - "loc": { - "start": { - "line": 34, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 34, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 34, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x17", - "decorators": [], - "loc": { - "start": { - "line": 35, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 17, - "loc": { - "start": { - "line": 35, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 35, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 35, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x18", - "decorators": [], - "loc": { - "start": { - "line": 36, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 18, - "loc": { - "start": { - "line": 36, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 36, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 36, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x19", - "decorators": [], - "loc": { - "start": { - "line": 37, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 19, - "loc": { - "start": { - "line": 37, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 37, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 37, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x20", - "decorators": [], - "loc": { - "start": { - "line": 38, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 20, - "loc": { - "start": { - "line": 38, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 38, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 38, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x21", - "decorators": [], - "loc": { - "start": { - "line": 39, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 21, - "loc": { - "start": { - "line": 39, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 39, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 39, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x22", - "decorators": [], - "loc": { - "start": { - "line": 40, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 22, - "loc": { - "start": { - "line": 40, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 40, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 40, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x23", - "decorators": [], - "loc": { - "start": { - "line": 41, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 23, - "loc": { - "start": { - "line": 41, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 41, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 41, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x24", - "decorators": [], - "loc": { - "start": { - "line": 42, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 24, - "loc": { - "start": { - "line": 42, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 42, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x25", - "decorators": [], - "loc": { - "start": { - "line": 43, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 25, - "loc": { - "start": { - "line": 43, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 43, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x26", - "decorators": [], - "loc": { - "start": { - "line": 44, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 26, - "loc": { - "start": { - "line": 44, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 44, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 44, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x27", - "decorators": [], - "loc": { - "start": { - "line": 45, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 27, - "loc": { - "start": { - "line": 45, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 45, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 45, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x28", - "decorators": [], - "loc": { - "start": { - "line": 46, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 28, - "loc": { - "start": { - "line": 46, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 46, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 46, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x29", - "decorators": [], - "loc": { - "start": { - "line": 47, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 29, - "loc": { - "start": { - "line": 47, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 47, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 47, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x30", - "decorators": [], - "loc": { - "start": { - "line": 48, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 30, - "loc": { - "start": { - "line": 48, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 48, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 48, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x31", - "decorators": [], - "loc": { - "start": { - "line": 49, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 31, - "loc": { - "start": { - "line": 49, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 49, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 49, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x32", - "decorators": [], - "loc": { - "start": { - "line": 50, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 32, - "loc": { - "start": { - "line": 50, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 50, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 50, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x33", - "decorators": [], - "loc": { - "start": { - "line": 51, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 33, - "loc": { - "start": { - "line": 51, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 51, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 51, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x34", - "decorators": [], - "loc": { - "start": { - "line": 52, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 34, - "loc": { - "start": { - "line": 52, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 52, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 52, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x35", - "decorators": [], - "loc": { - "start": { - "line": 53, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 35, - "loc": { - "start": { - "line": 53, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 53, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 53, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x36", - "decorators": [], - "loc": { - "start": { - "line": 54, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 36, - "loc": { - "start": { - "line": 54, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 54, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 54, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x37", - "decorators": [], - "loc": { - "start": { - "line": 55, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 37, - "loc": { - "start": { - "line": 55, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 55, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 55, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x38", - "decorators": [], - "loc": { - "start": { - "line": 56, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 38, - "loc": { - "start": { - "line": 56, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 56, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 56, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x39", - "decorators": [], - "loc": { - "start": { - "line": 57, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 39, - "loc": { - "start": { - "line": 57, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 57, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 57, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x40", - "decorators": [], - "loc": { - "start": { - "line": 58, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 40, - "loc": { - "start": { - "line": 58, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 58, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 58, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x41", - "decorators": [], - "loc": { - "start": { - "line": 59, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 41, - "loc": { - "start": { - "line": 59, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 59, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 59, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x42", - "decorators": [], - "loc": { - "start": { - "line": 60, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 42, - "loc": { - "start": { - "line": 60, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 60, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 60, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x43", - "decorators": [], - "loc": { - "start": { - "line": 61, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 43, - "loc": { - "start": { - "line": 61, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 61, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 61, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x44", - "decorators": [], - "loc": { - "start": { - "line": 62, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 44, - "loc": { - "start": { - "line": 62, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 62, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 62, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x45", - "decorators": [], - "loc": { - "start": { - "line": 63, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 45, - "loc": { - "start": { - "line": 63, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 63, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 63, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x46", - "decorators": [], - "loc": { - "start": { - "line": 64, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 46, - "loc": { - "start": { - "line": 64, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 64, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 64, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x47", - "decorators": [], - "loc": { - "start": { - "line": 65, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 47, - "loc": { - "start": { - "line": 65, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 65, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 65, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x48", - "decorators": [], - "loc": { - "start": { - "line": 66, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 48, - "loc": { - "start": { - "line": 66, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 66, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 66, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x49", - "decorators": [], - "loc": { - "start": { - "line": 67, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 49, - "loc": { - "start": { - "line": 67, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 67, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 67, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x50", - "decorators": [], - "loc": { - "start": { - "line": 68, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 50, - "loc": { - "start": { - "line": 68, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 68, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 68, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x51", - "decorators": [], - "loc": { - "start": { - "line": 69, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 51, - "loc": { - "start": { - "line": 69, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 69, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 69, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x52", - "decorators": [], - "loc": { - "start": { - "line": 70, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 52, - "loc": { - "start": { - "line": 70, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 70, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 70, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x53", - "decorators": [], - "loc": { - "start": { - "line": 71, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 53, - "loc": { - "start": { - "line": 71, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 71, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 71, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x54", - "decorators": [], - "loc": { - "start": { - "line": 72, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 54, - "loc": { - "start": { - "line": 72, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 72, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 72, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x55", - "decorators": [], - "loc": { - "start": { - "line": 73, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 55, - "loc": { - "start": { - "line": 73, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 73, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 73, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x56", - "decorators": [], - "loc": { - "start": { - "line": 74, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 56, - "loc": { - "start": { - "line": 74, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 74, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 74, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x57", - "decorators": [], - "loc": { - "start": { - "line": 75, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 57, - "loc": { - "start": { - "line": 75, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 75, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 75, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x58", - "decorators": [], - "loc": { - "start": { - "line": 76, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 58, - "loc": { - "start": { - "line": 76, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 76, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 76, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x59", - "decorators": [], - "loc": { - "start": { - "line": 77, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 59, - "loc": { - "start": { - "line": 77, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 77, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 77, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x60", - "decorators": [], - "loc": { - "start": { - "line": 78, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 60, - "loc": { - "start": { - "line": 78, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 78, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 78, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x61", - "decorators": [], - "loc": { - "start": { - "line": 79, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 61, - "loc": { - "start": { - "line": 79, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 79, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 79, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x62", - "decorators": [], - "loc": { - "start": { - "line": 80, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 62, - "loc": { - "start": { - "line": 80, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 80, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 80, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x63", - "decorators": [], - "loc": { - "start": { - "line": 81, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 63, - "loc": { - "start": { - "line": 81, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 81, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 81, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x64", - "decorators": [], - "loc": { - "start": { - "line": 82, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 64, - "loc": { - "start": { - "line": 82, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 82, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 82, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x65", - "decorators": [], - "loc": { - "start": { - "line": 83, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 65, - "loc": { - "start": { - "line": 83, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 83, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 83, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x66", - "decorators": [], - "loc": { - "start": { - "line": 84, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 66, - "loc": { - "start": { - "line": 84, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 84, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 84, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x67", - "decorators": [], - "loc": { - "start": { - "line": 85, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 67, - "loc": { - "start": { - "line": 85, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 85, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 85, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x68", - "decorators": [], - "loc": { - "start": { - "line": 86, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 68, - "loc": { - "start": { - "line": 86, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 86, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 86, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x69", - "decorators": [], - "loc": { - "start": { - "line": 87, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 69, - "loc": { - "start": { - "line": 87, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 87, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 87, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x70", - "decorators": [], - "loc": { - "start": { - "line": 88, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 70, - "loc": { - "start": { - "line": 88, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 88, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 88, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x71", - "decorators": [], - "loc": { - "start": { - "line": 89, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 71, - "loc": { - "start": { - "line": 89, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 89, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 89, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x72", - "decorators": [], - "loc": { - "start": { - "line": 90, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 72, - "loc": { - "start": { - "line": 90, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 90, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 90, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x73", - "decorators": [], - "loc": { - "start": { - "line": 91, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 73, - "loc": { - "start": { - "line": 91, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 91, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 91, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x74", - "decorators": [], - "loc": { - "start": { - "line": 92, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 74, - "loc": { - "start": { - "line": 92, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 92, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 92, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x75", - "decorators": [], - "loc": { - "start": { - "line": 93, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 75, - "loc": { - "start": { - "line": 93, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 93, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 93, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x76", - "decorators": [], - "loc": { - "start": { - "line": 94, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 76, - "loc": { - "start": { - "line": 94, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 94, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 94, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x77", - "decorators": [], - "loc": { - "start": { - "line": 95, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 77, - "loc": { - "start": { - "line": 95, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 95, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 95, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x78", - "decorators": [], - "loc": { - "start": { - "line": 96, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 78, - "loc": { - "start": { - "line": 96, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 96, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 96, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x79", - "decorators": [], - "loc": { - "start": { - "line": 97, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 79, - "loc": { - "start": { - "line": 97, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 97, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 97, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x80", - "decorators": [], - "loc": { - "start": { - "line": 98, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 80, - "loc": { - "start": { - "line": 98, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 98, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 98, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x81", - "decorators": [], - "loc": { - "start": { - "line": 99, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 81, - "loc": { - "start": { - "line": 99, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 99, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 99, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x82", - "decorators": [], - "loc": { - "start": { - "line": 100, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 82, - "loc": { - "start": { - "line": 100, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 100, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 100, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x83", - "decorators": [], - "loc": { - "start": { - "line": 101, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 83, - "loc": { - "start": { - "line": 101, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 101, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 101, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x84", - "decorators": [], - "loc": { - "start": { - "line": 102, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 84, - "loc": { - "start": { - "line": 102, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 102, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 102, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x85", - "decorators": [], - "loc": { - "start": { - "line": 103, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 85, - "loc": { - "start": { - "line": 103, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 103, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 103, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x86", - "decorators": [], - "loc": { - "start": { - "line": 104, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 86, - "loc": { - "start": { - "line": 104, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 104, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 104, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x87", - "decorators": [], - "loc": { - "start": { - "line": 105, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 87, - "loc": { - "start": { - "line": 105, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 105, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 105, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x88", - "decorators": [], - "loc": { - "start": { - "line": 106, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 88, - "loc": { - "start": { - "line": 106, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 106, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 106, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x89", - "decorators": [], - "loc": { - "start": { - "line": 107, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 89, - "loc": { - "start": { - "line": 107, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 107, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 107, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x90", - "decorators": [], - "loc": { - "start": { - "line": 108, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 90, - "loc": { - "start": { - "line": 108, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 108, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 108, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x91", - "decorators": [], - "loc": { - "start": { - "line": 109, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 91, - "loc": { - "start": { - "line": 109, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 109, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 109, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x92", - "decorators": [], - "loc": { - "start": { - "line": 110, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 92, - "loc": { - "start": { - "line": 110, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 110, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 110, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x93", - "decorators": [], - "loc": { - "start": { - "line": 111, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 93, - "loc": { - "start": { - "line": 111, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 111, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 111, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x94", - "decorators": [], - "loc": { - "start": { - "line": 112, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 94, - "loc": { - "start": { - "line": 112, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 112, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 112, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x95", - "decorators": [], - "loc": { - "start": { - "line": 113, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 95, - "loc": { - "start": { - "line": 113, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 113, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 113, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x96", - "decorators": [], - "loc": { - "start": { - "line": 114, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 96, - "loc": { - "start": { - "line": 114, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 114, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 114, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x97", - "decorators": [], - "loc": { - "start": { - "line": 115, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 97, - "loc": { - "start": { - "line": 115, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 115, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 115, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x98", - "decorators": [], - "loc": { - "start": { - "line": 116, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 98, - "loc": { - "start": { - "line": 116, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 116, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 116, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x99", - "decorators": [], - "loc": { - "start": { - "line": 117, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 99, - "loc": { - "start": { - "line": 117, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 117, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 117, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x100", - "decorators": [], - "loc": { - "start": { - "line": 118, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 100, - "loc": { - "start": { - "line": 118, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 118, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 118, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x101", - "decorators": [], - "loc": { - "start": { - "line": 119, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 101, - "loc": { - "start": { - "line": 119, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 119, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 119, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x102", - "decorators": [], - "loc": { - "start": { - "line": 120, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 102, - "loc": { - "start": { - "line": 120, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 120, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 120, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x103", - "decorators": [], - "loc": { - "start": { - "line": 121, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 103, - "loc": { - "start": { - "line": 121, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 121, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 121, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x104", - "decorators": [], - "loc": { - "start": { - "line": 122, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 104, - "loc": { - "start": { - "line": 122, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 122, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 122, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x105", - "decorators": [], - "loc": { - "start": { - "line": 123, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 105, - "loc": { - "start": { - "line": 123, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 123, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 123, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x106", - "decorators": [], - "loc": { - "start": { - "line": 124, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 106, - "loc": { - "start": { - "line": 124, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 124, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 124, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x107", - "decorators": [], - "loc": { - "start": { - "line": 125, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 107, - "loc": { - "start": { - "line": 125, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 125, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 125, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x108", - "decorators": [], - "loc": { - "start": { - "line": 126, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 108, - "loc": { - "start": { - "line": 126, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 126, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 126, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x109", - "decorators": [], - "loc": { - "start": { - "line": 127, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 109, - "loc": { - "start": { - "line": 127, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 127, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 127, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x110", - "decorators": [], - "loc": { - "start": { - "line": 128, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 110, - "loc": { - "start": { - "line": 128, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 128, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 128, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x111", - "decorators": [], - "loc": { - "start": { - "line": 129, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 111, - "loc": { - "start": { - "line": 129, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 129, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 129, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x112", - "decorators": [], - "loc": { - "start": { - "line": 130, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 112, - "loc": { - "start": { - "line": 130, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 130, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 130, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x113", - "decorators": [], - "loc": { - "start": { - "line": 131, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 113, - "loc": { - "start": { - "line": 131, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 131, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 131, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x114", - "decorators": [], - "loc": { - "start": { - "line": 132, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 114, - "loc": { - "start": { - "line": 132, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 132, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 132, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x115", - "decorators": [], - "loc": { - "start": { - "line": 133, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 115, - "loc": { - "start": { - "line": 133, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 133, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 133, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x116", - "decorators": [], - "loc": { - "start": { - "line": 134, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 116, - "loc": { - "start": { - "line": 134, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 134, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 134, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x117", - "decorators": [], - "loc": { - "start": { - "line": 135, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 117, - "loc": { - "start": { - "line": 135, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 135, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 135, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x118", - "decorators": [], - "loc": { - "start": { - "line": 136, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 118, - "loc": { - "start": { - "line": 136, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 136, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 136, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x119", - "decorators": [], - "loc": { - "start": { - "line": 137, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 119, - "loc": { - "start": { - "line": 137, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 137, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 137, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x120", - "decorators": [], - "loc": { - "start": { - "line": 138, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 120, - "loc": { - "start": { - "line": 138, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 138, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 138, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x121", - "decorators": [], - "loc": { - "start": { - "line": 139, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 121, - "loc": { - "start": { - "line": 139, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 139, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 139, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x122", - "decorators": [], - "loc": { - "start": { - "line": 140, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 122, - "loc": { - "start": { - "line": 140, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 140, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 140, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x123", - "decorators": [], - "loc": { - "start": { - "line": 141, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 123, - "loc": { - "start": { - "line": 141, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 141, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 141, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x124", - "decorators": [], - "loc": { - "start": { - "line": 142, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 124, - "loc": { - "start": { - "line": 142, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 142, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 142, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x125", - "decorators": [], - "loc": { - "start": { - "line": 143, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 125, - "loc": { - "start": { - "line": 143, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 143, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 143, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x126", - "decorators": [], - "loc": { - "start": { - "line": 144, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 126, - "loc": { - "start": { - "line": 144, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 144, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 144, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x127", - "decorators": [], - "loc": { - "start": { - "line": 145, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 127, - "loc": { - "start": { - "line": 145, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 145, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 145, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x128", - "decorators": [], - "loc": { - "start": { - "line": 146, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 128, - "loc": { - "start": { - "line": 146, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 146, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 146, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x129", - "decorators": [], - "loc": { - "start": { - "line": 147, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 129, - "loc": { - "start": { - "line": 147, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 147, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 147, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x130", - "decorators": [], - "loc": { - "start": { - "line": 148, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 130, - "loc": { - "start": { - "line": 148, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 148, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 148, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x131", - "decorators": [], - "loc": { - "start": { - "line": 149, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 131, - "loc": { - "start": { - "line": 149, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 149, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 149, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x132", - "decorators": [], - "loc": { - "start": { - "line": 150, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 132, - "loc": { - "start": { - "line": 150, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 150, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 150, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x133", - "decorators": [], - "loc": { - "start": { - "line": 151, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 133, - "loc": { - "start": { - "line": 151, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 151, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 151, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x134", - "decorators": [], - "loc": { - "start": { - "line": 152, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 134, - "loc": { - "start": { - "line": 152, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 152, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 152, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x135", - "decorators": [], - "loc": { - "start": { - "line": 153, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 135, - "loc": { - "start": { - "line": 153, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 153, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 153, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x136", - "decorators": [], - "loc": { - "start": { - "line": 154, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 136, - "loc": { - "start": { - "line": 154, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 154, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 154, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x137", - "decorators": [], - "loc": { - "start": { - "line": 155, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 137, - "loc": { - "start": { - "line": 155, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 155, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 155, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x138", - "decorators": [], - "loc": { - "start": { - "line": 156, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 138, - "loc": { - "start": { - "line": 156, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 156, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 156, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x139", - "decorators": [], - "loc": { - "start": { - "line": 157, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 139, - "loc": { - "start": { - "line": 157, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 157, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 157, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x140", - "decorators": [], - "loc": { - "start": { - "line": 158, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 140, - "loc": { - "start": { - "line": 158, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 158, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 158, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x141", - "decorators": [], - "loc": { - "start": { - "line": 159, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 141, - "loc": { - "start": { - "line": 159, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 159, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 159, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x142", - "decorators": [], - "loc": { - "start": { - "line": 160, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 142, - "loc": { - "start": { - "line": 160, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 160, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 160, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x143", - "decorators": [], - "loc": { - "start": { - "line": 161, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 143, - "loc": { - "start": { - "line": 161, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 161, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 161, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x144", - "decorators": [], - "loc": { - "start": { - "line": 162, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 144, - "loc": { - "start": { - "line": 162, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 162, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 162, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x145", - "decorators": [], - "loc": { - "start": { - "line": 163, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 145, - "loc": { - "start": { - "line": 163, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 163, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 163, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x146", - "decorators": [], - "loc": { - "start": { - "line": 164, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 146, - "loc": { - "start": { - "line": 164, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 164, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 164, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x147", - "decorators": [], - "loc": { - "start": { - "line": 165, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 147, - "loc": { - "start": { - "line": 165, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 165, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 165, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x148", - "decorators": [], - "loc": { - "start": { - "line": 166, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 148, - "loc": { - "start": { - "line": 166, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 166, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 166, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x149", - "decorators": [], - "loc": { - "start": { - "line": 167, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 149, - "loc": { - "start": { - "line": 167, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 167, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 167, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x150", - "decorators": [], - "loc": { - "start": { - "line": 168, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 150, - "loc": { - "start": { - "line": 168, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 168, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 168, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x151", - "decorators": [], - "loc": { - "start": { - "line": 169, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 151, - "loc": { - "start": { - "line": 169, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 169, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 169, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x152", - "decorators": [], - "loc": { - "start": { - "line": 170, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 152, - "loc": { - "start": { - "line": 170, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 170, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 170, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x153", - "decorators": [], - "loc": { - "start": { - "line": 171, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 153, - "loc": { - "start": { - "line": 171, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 171, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 171, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x154", - "decorators": [], - "loc": { - "start": { - "line": 172, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 154, - "loc": { - "start": { - "line": 172, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 172, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 172, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x155", - "decorators": [], - "loc": { - "start": { - "line": 173, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 155, - "loc": { - "start": { - "line": 173, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 173, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 173, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x156", - "decorators": [], - "loc": { - "start": { - "line": 174, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 156, - "loc": { - "start": { - "line": 174, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 174, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 174, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x157", - "decorators": [], - "loc": { - "start": { - "line": 175, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 157, - "loc": { - "start": { - "line": 175, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 175, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 175, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x158", - "decorators": [], - "loc": { - "start": { - "line": 176, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 158, - "loc": { - "start": { - "line": 176, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 176, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 176, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x159", - "decorators": [], - "loc": { - "start": { - "line": 177, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 159, - "loc": { - "start": { - "line": 177, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 177, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 177, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x160", - "decorators": [], - "loc": { - "start": { - "line": 178, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 160, - "loc": { - "start": { - "line": 178, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 178, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 178, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x161", - "decorators": [], - "loc": { - "start": { - "line": 179, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 161, - "loc": { - "start": { - "line": 179, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 179, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 179, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x162", - "decorators": [], - "loc": { - "start": { - "line": 180, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 162, - "loc": { - "start": { - "line": 180, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 180, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 180, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x163", - "decorators": [], - "loc": { - "start": { - "line": 181, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 163, - "loc": { - "start": { - "line": 181, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 181, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 181, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x164", - "decorators": [], - "loc": { - "start": { - "line": 182, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 164, - "loc": { - "start": { - "line": 182, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 182, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 182, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x165", - "decorators": [], - "loc": { - "start": { - "line": 183, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 165, - "loc": { - "start": { - "line": 183, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 183, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 183, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x166", - "decorators": [], - "loc": { - "start": { - "line": 184, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 166, - "loc": { - "start": { - "line": 184, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 184, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 184, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x167", - "decorators": [], - "loc": { - "start": { - "line": 185, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 167, - "loc": { - "start": { - "line": 185, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 185, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 185, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x168", - "decorators": [], - "loc": { - "start": { - "line": 186, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 168, - "loc": { - "start": { - "line": 186, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 186, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 186, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x169", - "decorators": [], - "loc": { - "start": { - "line": 187, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 169, - "loc": { - "start": { - "line": 187, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 187, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 187, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x170", - "decorators": [], - "loc": { - "start": { - "line": 188, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 170, - "loc": { - "start": { - "line": 188, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 188, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 188, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x171", - "decorators": [], - "loc": { - "start": { - "line": 189, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 171, - "loc": { - "start": { - "line": 189, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 189, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 189, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x172", - "decorators": [], - "loc": { - "start": { - "line": 190, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 172, - "loc": { - "start": { - "line": 190, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 190, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 190, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x173", - "decorators": [], - "loc": { - "start": { - "line": 191, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 173, - "loc": { - "start": { - "line": 191, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 191, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 191, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x174", - "decorators": [], - "loc": { - "start": { - "line": 192, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 174, - "loc": { - "start": { - "line": 192, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 192, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 192, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x175", - "decorators": [], - "loc": { - "start": { - "line": 193, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 175, - "loc": { - "start": { - "line": 193, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 193, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 193, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x176", - "decorators": [], - "loc": { - "start": { - "line": 194, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 176, - "loc": { - "start": { - "line": 194, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 194, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 194, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x177", - "decorators": [], - "loc": { - "start": { - "line": 195, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 177, - "loc": { - "start": { - "line": 195, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 195, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 195, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x178", - "decorators": [], - "loc": { - "start": { - "line": 196, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 178, - "loc": { - "start": { - "line": 196, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 196, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 196, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x179", - "decorators": [], - "loc": { - "start": { - "line": 197, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 179, - "loc": { - "start": { - "line": 197, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 197, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 197, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x180", - "decorators": [], - "loc": { - "start": { - "line": 198, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 180, - "loc": { - "start": { - "line": 198, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 198, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 198, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x181", - "decorators": [], - "loc": { - "start": { - "line": 199, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 181, - "loc": { - "start": { - "line": 199, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 199, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 199, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x182", - "decorators": [], - "loc": { - "start": { - "line": 200, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 182, - "loc": { - "start": { - "line": 200, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 200, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 200, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x183", - "decorators": [], - "loc": { - "start": { - "line": 201, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 183, - "loc": { - "start": { - "line": 201, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 201, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 201, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x184", - "decorators": [], - "loc": { - "start": { - "line": 202, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 184, - "loc": { - "start": { - "line": 202, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 202, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 202, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x185", - "decorators": [], - "loc": { - "start": { - "line": 203, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 185, - "loc": { - "start": { - "line": 203, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 203, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 203, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x186", - "decorators": [], - "loc": { - "start": { - "line": 204, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 186, - "loc": { - "start": { - "line": 204, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 204, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 204, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x187", - "decorators": [], - "loc": { - "start": { - "line": 205, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 187, - "loc": { - "start": { - "line": 205, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 205, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 205, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x188", - "decorators": [], - "loc": { - "start": { - "line": 206, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 188, - "loc": { - "start": { - "line": 206, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 206, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 206, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x189", - "decorators": [], - "loc": { - "start": { - "line": 207, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 189, - "loc": { - "start": { - "line": 207, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 207, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 207, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x190", - "decorators": [], - "loc": { - "start": { - "line": 208, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 190, - "loc": { - "start": { - "line": 208, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 208, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 208, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x191", - "decorators": [], - "loc": { - "start": { - "line": 209, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 191, - "loc": { - "start": { - "line": 209, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 209, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 209, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x192", - "decorators": [], - "loc": { - "start": { - "line": 210, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 192, - "loc": { - "start": { - "line": 210, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 210, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 210, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x193", - "decorators": [], - "loc": { - "start": { - "line": 211, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 193, - "loc": { - "start": { - "line": 211, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 211, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 211, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x194", - "decorators": [], - "loc": { - "start": { - "line": 212, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 194, - "loc": { - "start": { - "line": 212, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 212, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 212, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x195", - "decorators": [], - "loc": { - "start": { - "line": 213, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 195, - "loc": { - "start": { - "line": 213, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 213, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 213, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x196", - "decorators": [], - "loc": { - "start": { - "line": 214, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 196, - "loc": { - "start": { - "line": 214, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 214, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 214, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x197", - "decorators": [], - "loc": { - "start": { - "line": 215, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 197, - "loc": { - "start": { - "line": 215, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 215, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 215, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x198", - "decorators": [], - "loc": { - "start": { - "line": 216, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 198, - "loc": { - "start": { - "line": 216, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 216, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 216, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x199", - "decorators": [], - "loc": { - "start": { - "line": 217, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 199, - "loc": { - "start": { - "line": 217, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 217, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 217, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x200", - "decorators": [], - "loc": { - "start": { - "line": 218, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 200, - "loc": { - "start": { - "line": 218, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 218, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 218, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x201", - "decorators": [], - "loc": { - "start": { - "line": 219, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 201, - "loc": { - "start": { - "line": 219, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 219, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 219, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x202", - "decorators": [], - "loc": { - "start": { - "line": 220, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 202, - "loc": { - "start": { - "line": 220, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 220, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 220, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x203", - "decorators": [], - "loc": { - "start": { - "line": 221, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 203, - "loc": { - "start": { - "line": 221, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 221, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 221, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x204", - "decorators": [], - "loc": { - "start": { - "line": 222, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 204, - "loc": { - "start": { - "line": 222, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 222, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 222, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x205", - "decorators": [], - "loc": { - "start": { - "line": 223, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 205, - "loc": { - "start": { - "line": 223, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 223, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 223, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x206", - "decorators": [], - "loc": { - "start": { - "line": 224, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 206, - "loc": { - "start": { - "line": 224, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 224, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 224, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x207", - "decorators": [], - "loc": { - "start": { - "line": 225, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 207, - "loc": { - "start": { - "line": 225, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 225, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 225, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x208", - "decorators": [], - "loc": { - "start": { - "line": 226, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 208, - "loc": { - "start": { - "line": 226, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 226, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 226, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x209", - "decorators": [], - "loc": { - "start": { - "line": 227, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 209, - "loc": { - "start": { - "line": 227, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 227, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 227, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x210", - "decorators": [], - "loc": { - "start": { - "line": 228, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 210, - "loc": { - "start": { - "line": 228, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 228, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 228, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x211", - "decorators": [], - "loc": { - "start": { - "line": 229, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 211, - "loc": { - "start": { - "line": 229, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 229, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 229, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x212", - "decorators": [], - "loc": { - "start": { - "line": 230, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 212, - "loc": { - "start": { - "line": 230, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 230, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 230, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x213", - "decorators": [], - "loc": { - "start": { - "line": 231, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 213, - "loc": { - "start": { - "line": 231, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 231, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 231, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x214", - "decorators": [], - "loc": { - "start": { - "line": 232, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 214, - "loc": { - "start": { - "line": 232, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 232, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 232, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x215", - "decorators": [], - "loc": { - "start": { - "line": 233, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 215, - "loc": { - "start": { - "line": 233, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 233, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 233, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x216", - "decorators": [], - "loc": { - "start": { - "line": 234, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 216, - "loc": { - "start": { - "line": 234, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 234, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 234, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x217", - "decorators": [], - "loc": { - "start": { - "line": 235, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 217, - "loc": { - "start": { - "line": 235, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 235, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 235, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x218", - "decorators": [], - "loc": { - "start": { - "line": 236, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 218, - "loc": { - "start": { - "line": 236, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 236, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 236, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x219", - "decorators": [], - "loc": { - "start": { - "line": 237, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 219, - "loc": { - "start": { - "line": 237, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 237, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 237, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x220", - "decorators": [], - "loc": { - "start": { - "line": 238, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 220, - "loc": { - "start": { - "line": 238, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 238, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 238, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x221", - "decorators": [], - "loc": { - "start": { - "line": 239, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 221, - "loc": { - "start": { - "line": 239, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 239, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 239, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x222", - "decorators": [], - "loc": { - "start": { - "line": 240, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 222, - "loc": { - "start": { - "line": 240, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 240, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 240, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x223", - "decorators": [], - "loc": { - "start": { - "line": 241, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 223, - "loc": { - "start": { - "line": 241, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 241, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 241, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x224", - "decorators": [], - "loc": { - "start": { - "line": 242, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 224, - "loc": { - "start": { - "line": 242, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 242, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 242, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x225", - "decorators": [], - "loc": { - "start": { - "line": 243, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 225, - "loc": { - "start": { - "line": 243, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 243, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 243, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x226", - "decorators": [], - "loc": { - "start": { - "line": 244, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 226, - "loc": { - "start": { - "line": 244, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 244, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 244, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x227", - "decorators": [], - "loc": { - "start": { - "line": 245, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 227, - "loc": { - "start": { - "line": 245, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 245, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 245, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x228", - "decorators": [], - "loc": { - "start": { - "line": 246, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 228, - "loc": { - "start": { - "line": 246, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 246, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 246, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x229", - "decorators": [], - "loc": { - "start": { - "line": 247, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 229, - "loc": { - "start": { - "line": 247, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 247, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 247, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x230", - "decorators": [], - "loc": { - "start": { - "line": 248, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 230, - "loc": { - "start": { - "line": 248, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 248, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 248, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x231", - "decorators": [], - "loc": { - "start": { - "line": 249, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 231, - "loc": { - "start": { - "line": 249, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 249, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 249, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x232", - "decorators": [], - "loc": { - "start": { - "line": 250, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 232, - "loc": { - "start": { - "line": 250, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 250, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 250, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x233", - "decorators": [], - "loc": { - "start": { - "line": 251, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 233, - "loc": { - "start": { - "line": 251, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 251, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 251, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x234", - "decorators": [], - "loc": { - "start": { - "line": 252, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 234, - "loc": { - "start": { - "line": 252, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 252, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 252, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x235", - "decorators": [], - "loc": { - "start": { - "line": 253, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 235, - "loc": { - "start": { - "line": 253, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 253, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 253, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x236", - "decorators": [], - "loc": { - "start": { - "line": 254, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 236, - "loc": { - "start": { - "line": 254, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 254, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 254, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x237", - "decorators": [], - "loc": { - "start": { - "line": 255, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 237, - "loc": { - "start": { - "line": 255, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 255, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 255, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x238", - "decorators": [], - "loc": { - "start": { - "line": 256, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 238, - "loc": { - "start": { - "line": 256, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 256, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 256, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x239", - "decorators": [], - "loc": { - "start": { - "line": 257, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 239, - "loc": { - "start": { - "line": 257, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 257, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 257, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x240", - "decorators": [], - "loc": { - "start": { - "line": 258, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 240, - "loc": { - "start": { - "line": 258, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 258, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 258, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x241", - "decorators": [], - "loc": { - "start": { - "line": 259, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 241, - "loc": { - "start": { - "line": 259, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 259, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 259, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x242", - "decorators": [], - "loc": { - "start": { - "line": 260, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 242, - "loc": { - "start": { - "line": 260, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 260, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 260, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x243", - "decorators": [], - "loc": { - "start": { - "line": 261, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 243, - "loc": { - "start": { - "line": 261, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 261, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 261, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x244", - "decorators": [], - "loc": { - "start": { - "line": 262, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 244, - "loc": { - "start": { - "line": 262, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 262, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 262, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x245", - "decorators": [], - "loc": { - "start": { - "line": 263, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 245, - "loc": { - "start": { - "line": 263, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 263, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 263, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x246", - "decorators": [], - "loc": { - "start": { - "line": 264, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 246, - "loc": { - "start": { - "line": 264, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 264, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 264, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x247", - "decorators": [], - "loc": { - "start": { - "line": 265, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 247, - "loc": { - "start": { - "line": 265, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 265, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 265, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x248", - "decorators": [], - "loc": { - "start": { - "line": 266, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 248, - "loc": { - "start": { - "line": 266, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 266, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 266, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x249", - "decorators": [], - "loc": { - "start": { - "line": 267, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 249, - "loc": { - "start": { - "line": 267, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 267, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 267, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x250", - "decorators": [], - "loc": { - "start": { - "line": 268, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 250, - "loc": { - "start": { - "line": 268, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 268, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 268, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x251", - "decorators": [], - "loc": { - "start": { - "line": 269, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 251, - "loc": { - "start": { - "line": 269, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 269, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 269, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x252", - "decorators": [], - "loc": { - "start": { - "line": 270, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 252, - "loc": { - "start": { - "line": 270, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 270, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 270, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x253", - "decorators": [], - "loc": { - "start": { - "line": 271, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 253, - "loc": { - "start": { - "line": 271, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 271, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 271, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x254", - "decorators": [], - "loc": { - "start": { - "line": 272, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 254, - "loc": { - "start": { - "line": 272, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 272, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 272, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x255", - "decorators": [], - "loc": { - "start": { - "line": 273, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 255, - "loc": { - "start": { - "line": 273, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 273, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 273, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 275, - "column": 1, - "program": "many_locals_1.js" - } - } -} +Fatal error F0011: js extension is not supported within current build diff --git a/ets2panda/test/parser/as/test_decorators1-expected.txt b/ets2panda/test/parser/as/test_decorators1-expected.txt index 2f688ddaa4..98801b7a4b 100644 --- a/ets2panda/test/parser/as/test_decorators1-expected.txt +++ b/ets2panda/test/parser/as/test_decorators1-expected.txt @@ -149,3 +149,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_interface-expected.txt b/ets2panda/test/parser/as/test_interface-expected.txt index 2d1cb7d5f5..177ee944d8 100644 --- a/ets2panda/test/parser/as/test_interface-expected.txt +++ b/ets2panda/test/parser/as/test_interface-expected.txt @@ -1084,3 +1084,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_object_literal-expected.txt b/ets2panda/test/parser/as/test_object_literal-expected.txt index ed61791126..a54f28f1bb 100644 --- a/ets2panda/test/parser/as/test_object_literal-expected.txt +++ b/ets2panda/test/parser/as/test_object_literal-expected.txt @@ -292,3 +292,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_type_annotation-expected.txt b/ets2panda/test/parser/as/test_type_annotation-expected.txt index 7ebeb95012..885b43037b 100644 --- a/ets2panda/test/parser/as/test_type_annotation-expected.txt +++ b/ets2panda/test/parser/as/test_type_annotation-expected.txt @@ -1103,3 +1103,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt b/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt index 2019883103..9f7357c5fd 100755 --- a/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt @@ -599,3 +599,4 @@ } } } +Warning: 'foo' has already imported [/home/kaskov/Documents/panda/ets_frontend/ets2panda/test/parser/ets/import_tests/import_several_2.ets:15:623] diff --git a/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt b/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt index 473fb64084..a44bee09a2 100755 --- a/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt @@ -891,3 +891,4 @@ } } } +Warning: 'foo' is explicitly used with alias several times [/home/kaskov/Documents/panda/ets_frontend/ets2panda/test/parser/ets/import_tests/import_several_7.ets:15:630] diff --git a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt index 84d7af505e..96de89baa3 100755 --- a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt @@ -570,4 +570,4 @@ } } } -TypeError: Variable 'a' has already been declared. [subpackage_module_2.ets:19:12] +[subpackage_module_2.ets:19:12] Semantic error ESE0351: Variable 'a' has already been declared. diff --git a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt index dd6e5693b3..859ed04956 100755 --- a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt @@ -570,4 +570,4 @@ } } } -TypeError: Variable 'a' has already been declared. [subpackage_module_1.ets:19:12] +[subpackage_module_1.ets:19:12] Semantic error ESE0351: Variable 'a' has already been declared. diff --git a/ets2panda/test/parser/ets/instanceof-expected.txt b/ets2panda/test/parser/ets/instanceof-expected.txt index c3275656e5..8e6b8775e6 100644 --- a/ets2panda/test/parser/ets/instanceof-expected.txt +++ b/ets2panda/test/parser/ets/instanceof-expected.txt @@ -1052,4 +1052,4 @@ } } } -Warning: Type parameter is erased from type 'Array' when used in instanceof expression. [instanceof.ets:1:1] +[instanceof.ets:1:1] Warning W0015: Type parameter is erased from type 'Array' when used in instanceof expression. diff --git a/ets2panda/test/parser/ets/interfaces-expected.txt b/ets2panda/test/parser/ets/interfaces-expected.txt index ae8b046692..0670e167ee 100644 --- a/ets2panda/test/parser/ets/interfaces-expected.txt +++ b/ets2panda/test/parser/ets/interfaces-expected.txt @@ -1486,4 +1486,4 @@ } } } -TypeError: 'nopnop' is an instance property of 'I0' [interfaces.ets:22:28] +[interfaces.ets:22:28] Semantic error ESE0208: 'nopnop' is an instance property of 'I0' diff --git a/ets2panda/test/parser/ets/literals-expected.txt b/ets2panda/test/parser/ets/literals-expected.txt index 080be2aefb..479fbcde1d 100644 --- a/ets2panda/test/parser/ets/literals-expected.txt +++ b/ets2panda/test/parser/ets/literals-expected.txt @@ -1600,4 +1600,4 @@ } } } -TypeError: Can't resolve array type [literals.ets:35:15] +[literals.ets:35:15] Semantic error ESE0301: Can't resolve array type diff --git a/ets2panda/test/parser/ets/re_export/import_10-expected.txt b/ets2panda/test/parser/ets/re_export/import_10-expected.txt index a4098ad70b..395f8df6ff 100644 --- a/ets2panda/test/parser/ets/re_export/import_10-expected.txt +++ b/ets2panda/test/parser/ets/re_export/import_10-expected.txt @@ -374,4 +374,4 @@ } } } -TypeError: Ambiguous export 'foo' [re_export_4.ets:16:8] +[re_export_4.ets:16:8] Semantic error ESE0362: Ambiguous export 'foo' diff --git a/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt b/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt index 26a9e8d39d..04b3b23f4d 100644 --- a/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt +++ b/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt @@ -471,4 +471,4 @@ } } } -TypeError: Ambiguous export 'foo' [re_export_4.ets:16:8] +[re_export_4.ets:16:8] Semantic error ESE0362: Ambiguous export 'foo' diff --git a/ets2panda/test/parser/ets/test_type_alias6-expected.txt b/ets2panda/test/parser/ets/test_type_alias6-expected.txt index 417fe11ce0..da015de7f6 100644 --- a/ets2panda/test/parser/ets/test_type_alias6-expected.txt +++ b/ets2panda/test/parser/ets/test_type_alias6-expected.txt @@ -445,6 +445,6 @@ } } } -TypeError: Variable 'x' has already been declared. [test_type_alias6.ets:17:5] -TypeError: Type name 'x' used in the wrong context [test_type_alias6.ets:17:5] -TypeError: Type 'Double' cannot be assigned to type 'Int' [test_type_alias6.ets:17:9] +[test_type_alias6.ets:17:5] Semantic error ESE0351: Variable 'x' has already been declared. +[test_type_alias6.ets:17:5] Semantic error ESE0144: Type name 'x' used in the wrong context +[test_type_alias6.ets:17:9] Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' diff --git a/ets2panda/test/parser/ets/type_alias_1-expected.txt b/ets2panda/test/parser/ets/type_alias_1-expected.txt index 7997bdfa5d..1c812736c1 100644 --- a/ets2panda/test/parser/ets/type_alias_1-expected.txt +++ b/ets2panda/test/parser/ets/type_alias_1-expected.txt @@ -539,4 +539,4 @@ } } } -TypeError: Variable 'Matrix' has already been declared. [type_alias_1.ets:18:5] +[type_alias_1.ets:18:5] Semantic error ESE0351: Variable 'Matrix' has already been declared. diff --git a/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json b/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json index 8dd7ddc8c1..c470cbfb72 100644 --- a/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json +++ b/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "Fatal error: Invalid ArkTsConfig: incorrect-include/arktsconfig.json\nArkTS config error: The 'include' must have array type\n", - "stderr": "" + "stdout": "", + "stderr": "Fatal error F0013: Invalid ArkTsConfig: incorrect-include/arktsconfig.json\nArkTS config error EAC0010: The 'include' must have array type\n" } diff --git a/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json b/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json index bf996e3c55..2979888f06 100644 --- a/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json +++ b/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "SyntaxError: Export keyword without declare shouldn't be used in declaration module. [index.ets:16:8]\n", - "stderr": "" + "stdout": "", + "stderr": "[index.ets:16:8] Syntax error ESY0296: Export keyword without declare shouldn't be used in declaration module.\n" } \ No newline at end of file diff --git a/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json b/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json index cb2d2fb848..18fe261e81 100644 --- a/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json +++ b/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "TypeError: Class D shouldn't extend dynamic class. [main.ets:18:19]\n", - "stderr": "" + "stdout": "", + "stderr": "[main.ets:18:19] Type error ESE0102: Class D shouldn't extend dynamic class.\n" } \ No newline at end of file diff --git a/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json b/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json index c11295340f..165eb7d798 100644 --- a/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json +++ b/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "TypeError: Type 'Int' is not compatible with type 'String' at property 'location' [main.ets:19:28]\nTypeError: Operator '!=' cannot be applied to types 'String' and 'Int'. [main.ets:21:9]\n", - "stderr": "" + "stdout": "", + "stderr": "[main.ets:19:28] Type error ESE0120: Type 'Int' is not compatible with type 'String' at property 'location'\n[main.ets:21:9] TypeError ESE0105: Operator '!=' cannot be applied to types 'String' and 'Int'.\n" } \ No newline at end of file diff --git a/ets2panda/util/diagnostic.cpp b/ets2panda/util/diagnostic.cpp index 4ca94c5c81..eb65cdb3a2 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 3c82dc536a..5481a51e42 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 920b835f6f..246db55b5d 100644 --- a/ets2panda/util/diagnostic/semantic.yaml +++ b/ets2panda/util/diagnostic/semantic.yaml @@ -1428,7 +1428,7 @@ semantic: - name: VOID_VALUE id: 78 - message: "Cannot use type 'void' as value. " + message: "Cannot use type 'void' as value." - name: WRONG_OPERAND_TYPE_FOR_BINARY_EXPRESSION id: 346 diff --git a/ets2panda/util/diagnosticEngine.cpp b/ets2panda/util/diagnosticEngine.cpp index ce2147a3f7..e8be210953 100644 --- a/ets2panda/util/diagnosticEngine.cpp +++ b/ets2panda/util/diagnosticEngine.cpp @@ -24,17 +24,20 @@ namespace ark::es2panda::util { void CLIDiagnosticPrinter::Print(const DiagnosticBase &diagnostic, std::ostream &out) const { - out << DiagnosticTypeToString(diagnostic.Type()) << ": " << diagnostic.Message(); + // Message collected and printed once to avoid spliting printed message in case multithreading execution + std::ostringstream stream; if (!diagnostic.File().empty()) { - out << " [" << util::BaseName(diagnostic.File()) << ":" << diagnostic.Line() << ":" << diagnostic.Offset() - << "]"; + stream << "[" << util::BaseName(diagnostic.File()) << ":" << diagnostic.Line() << ":" << diagnostic.Offset() + << "] "; } - out << std::endl; + stream << DiagnosticTypeToString(diagnostic.Type()) << " " << diagnostic.ToStringUniqueNumber() << ": " + << diagnostic.Message() << std::endl; + out << stream.str(); } void CLIDiagnosticPrinter::Print(const DiagnosticBase &diagnostic) const { - Print(diagnostic, std::cout); + Print(diagnostic, std::cerr); } const DiagnosticStorage &DiagnosticEngine::GetDiagnosticStorage(DiagnosticType type) diff --git a/ets2panda/util/options.cpp b/ets2panda/util/options.cpp index dbb5e1fbee..02f6b94ea5 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; -- Gitee